Package org.nuxeo.runtime.model
Interface StreamRef
-
- All Known Subinterfaces:
Contribution
- All Known Implementing Classes:
AbstractContribution
,ContributionBuilder
,ContributionFile
,ContributionLocation
,InlineRef
,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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.- Throws:
IOException
-
asURL
URL asURL()
Get an URL to that stream. May return null if no URL is available.
-
-