Package org.nuxeo.runtime.model
Class URLStreamRef
- java.lang.Object
-
- org.nuxeo.runtime.model.URLStreamRef
-
- All Implemented Interfaces:
StreamRef
public class URLStreamRef extends Object implements StreamRef
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description URLStreamRef(URL url)
URLStreamRef(URL url, String name)
-
Method Summary
All Methods Instance Methods Concrete 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
public String getId()
Description copied from interface:StreamRef
Get an unique identifier for this stream.
-
getStream
public InputStream getStream() throws IOException
Description copied from interface:StreamRef
Get the stream content.- Specified by:
getStream
in interfaceStreamRef
- Throws:
IOException
-
-