Package org.nuxeo.runtime.model
Interface StreamRef
-
- All Known Subinterfaces:
Contribution
- All Known Implementing Classes:
AbstractContribution,ContributionBuilder,ContributionFile,ContributionLocation,InlineRef,URLStreamRef
public interface StreamRefA named stream used to be able to deploy new components without referring to them via URLs.- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URLasURL()Get an URL to that stream.StringgetId()Get an unique identifier for this stream.InputStreamgetStream()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.- Throws:
IOException
-
asURL
URL asURL()
Get an URL to that stream. May return null if no URL is available.
-
-