Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.model
Interface StreamRef

All Known Subinterfaces:
Contribution
All Known Implementing Classes:
AbstractContribution, ContributionBuilder, ContributionFile, ContributionLocation, URLStreamRef

public interface StreamRef

A named stream used to be able to deploy new components without referring to them via URLs.

Author:
Bogdan Stefanescu

Method Summary
 URL asURL()
          Get an URL to that stream.
 String getId()
          Get an unique identifier for this stream.
 InputStream getStream()
          Get the stream content.
 

Method Detail

getId

String getId()
Get an unique identifier for this stream.


getStream

InputStream getStream()
                      throws IOException
Get the stream content.

Returns:
Throws:
IOException

asURL

URL asURL()
Get an URL to that stream. May return null if no URL is available.

Returns:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.