org.nuxeo.core.resources.model
Interface IContentSource

All Known Implementing Classes:
FileContentSource, StreamContentSource, URLContentSource

public interface IContentSource

Author:
Bogdan Stefanescu

Method Summary
 void close()
          Close the input stream returned previously by open() If no input stream was opened does nothing
 java.io.InputStream open()
          Open an input stream to read the content
 

Method Detail

open

java.io.InputStream open()
                         throws java.io.IOException
Open an input stream to read the content

Returns:
the content input stream
Throws:
java.io.IOException - if an error occurs

close

void close()
Close the input stream returned previously by open() If no input stream was opened does nothing