org.nuxeo.runtime.model
Class URLStreamRef
java.lang.Object
org.nuxeo.runtime.model.URLStreamRef
- All Implemented Interfaces:
- StreamRef
public class URLStreamRef
- extends java.lang.Object
- implements StreamRef
- Author:
- Bogdan Stefanescu
Method Summary |
java.net.URL |
asURL()
Get an URL to that stream. |
java.lang.String |
getId()
Get an unique identifier for this stream. |
java.io.InputStream |
getStream()
Get the stream content. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLStreamRef
public URLStreamRef(java.net.URL url)
URLStreamRef
public URLStreamRef(java.net.URL url,
java.lang.String name)
getId
public java.lang.String getId()
- Description copied from interface:
StreamRef
- Get an unique identifier for this stream.
- Specified by:
getId
in interface StreamRef
getStream
public java.io.InputStream getStream()
throws java.io.IOException
- Description copied from interface:
StreamRef
- Get the stream content.
- Specified by:
getStream
in interface StreamRef
- Returns:
-
- Throws:
java.io.IOException
asURL
public java.net.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 © 2010 Nuxeo SAS. All Rights Reserved.