Interface IContentSource
- All Known Subinterfaces:
IContentStore
public interface IContentSource
Interface for any portal object that may be content source
-
Method Summary
Modifier and TypeMethodDescriptiongetInputStream
(boolean releaseStream) Returns input stream for content to read data fromGets mime type for the contentvoid
release()
Releases all allocated resources, such as streams, open files.
-
Method Details
-
getInputStream
Returns input stream for content to read data from- Parameters:
releaseStream
- if true than implementation of content source should keep track of opened stream and close it when necessary (usually when its internal state gets released on during finalize) Set it to false if you want to control when to close stream
-
getMimeType
String getMimeType()Gets mime type for the content- Returns:
- mime type
-
release
void release()Releases all allocated resources, such as streams, open files.
-