Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.model
Class URLStreamRef

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

public class URLStreamRef
extends java.lang.Object
implements StreamRef

Author:
Bogdan Stefanescu

Constructor Summary
URLStreamRef(java.net.URL url)
           
URLStreamRef(java.net.URL url, java.lang.String name)
           
 
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
 

Constructor Detail

URLStreamRef

public URLStreamRef(java.net.URL url)

URLStreamRef

public URLStreamRef(java.net.URL url,
                    java.lang.String name)
Method Detail

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:

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.