Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.model
Class URLStreamRef

java.lang.Object
  extended by org.nuxeo.runtime.model.URLStreamRef
All Implemented Interfaces:
StreamRef

public class URLStreamRef
extends Object
implements StreamRef

Author:
Bogdan Stefanescu

Constructor Summary
URLStreamRef(URL url)
           
URLStreamRef(URL url, String name)
           
 
Method Summary
 URL asURL()
          Get an URL to that stream.
 String getId()
          Get an unique identifier for this stream.
 InputStream getStream()
          Get the stream content.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLStreamRef

public URLStreamRef(URL url)

URLStreamRef

public URLStreamRef(URL url,
                    String name)
Method Detail

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:

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.