public interface IContentSource
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream(boolean releaseStream)
Returns input stream for content to read data from
|
String |
getMimeType()
Gets mime type for the content
|
void |
release()
Releases all allocated resources, such as streams, open files.
|
InputStream getInputStream(boolean releaseStream)
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 streamString getMimeType()
void release()