org.pentaho.platform.engine.core.output
Class BufferedContentItem

java.lang.Object
  extended by org.pentaho.platform.engine.core.output.SimpleContentItem
      extended by org.pentaho.platform.engine.core.output.BufferedContentItem
All Implemented Interfaces:
IMimeTypeListener, IContentItem

public class BufferedContentItem
extends SimpleContentItem


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.repository.IContentItem
WRITEMODE_APPEND, WRITEMODE_KEEPVERSIONS, WRITEMODE_OVERWRITE
 
Constructor Summary
BufferedContentItem(IContentListener listener)
           
 
Method Summary
 void closeOutputStream()
           
 InputStream getInputStream()
          Gets an input stream from the Content item.
 void setMimeType(String mimeType)
          Sets the mime type
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedContentItem

public BufferedContentItem(IContentListener listener)
Method Detail

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.