org.pentaho.platform.engine.core.output
Class BufferedContentItem
java.lang.Object
org.pentaho.platform.engine.core.output.SimpleContentItem
org.pentaho.platform.engine.core.output.BufferedContentItem
- All Implemented Interfaces:
- IMimeTypeListener, IContentItem
public class BufferedContentItem
- extends SimpleContentItem
Methods inherited from class org.pentaho.platform.engine.core.output.SimpleContentItem |
getActionName, getDataSource, getFileDateTime, getFileId, getFileSize, getFileVersions, getId, getMimeType, getName, getOutputStream, getPath, getReader, getTitle, getUrl, makeTransient, removeAllVersions, removeVersion, setName, setOutputStream |
BufferedContentItem
public BufferedContentItem(IContentListener listener)
closeOutputStream
public void closeOutputStream()
- Specified by:
closeOutputStream
in interface IContentItem
- Overrides:
closeOutputStream
in class SimpleContentItem
getInputStream
public InputStream getInputStream()
- Description copied from interface:
IContentItem
- Gets an input stream from the Content item. If the content item doesn't
exist on disk, throws an exception
- Specified by:
getInputStream
in interface IContentItem
- Overrides:
getInputStream
in class SimpleContentItem
- Returns:
- An input stream from the file system that is represented by this
content item
setMimeType
public void setMimeType(String mimeType)
- Description copied from interface:
IContentItem
- Sets the mime type
- Specified by:
setMimeType
in interface IMimeTypeListener
- Specified by:
setMimeType
in interface IContentItem
- Overrides:
setMimeType
in class SimpleContentItem
- Parameters:
mimeType
- The mime type to set.