Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.model
Interface StreamRef

All Known Subinterfaces:
Contribution
All Known Implementing Classes:
AbstractContribution, ContributionBuilder, ContributionFile, URLStreamRef

public interface StreamRef

A named stream used to be able to deploy new components without referring to them via URLs.

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.
 

Method Detail

getId

java.lang.String getId()
Get an unique identifier for this stream.


getStream

java.io.InputStream getStream()
                              throws java.io.IOException
Get the stream content.

Returns:
Throws:
java.io.IOException

asURL

java.net.URL asURL()
Get an URL to that stream. May return null if no URL is available.

Returns:

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.