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
URLStreamRef
public URLStreamRef(URL url)
URLStreamRef
public URLStreamRef(URL url,
String name)
getId
public String getId()
- Description copied from interface:
StreamRef
- Get an unique identifier for this stream.
- Specified by:
getId
in interface StreamRef
getStream
public InputStream getStream()
throws IOException
- Description copied from interface:
StreamRef
- Get the stream content.
- Specified by:
getStream
in interface StreamRef
- Returns:
-
- Throws:
IOException
asURL
public URL asURL()
- Description copied from interface:
StreamRef
- Get an URL to that stream. May return null if no URL is available.
- Specified by:
asURL
in interface StreamRef
- Returns:
Copyright © 2011 Nuxeo SAS. All Rights Reserved.