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

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

public class MultiContentItem
extends SimpleContentItem


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.repository.IContentItem
WRITEMODE_APPEND, WRITEMODE_KEEPVERSIONS, WRITEMODE_OVERWRITE
 
Constructor Summary
MultiContentItem()
           
 
Method Summary
 void addContentItem(IContentItem contentItem)
           
 void closeOutputStream()
           
 OutputStream getOutputStream(String actionName)
          The behavior of this method depends upon it's write mode (defined only at construction).
 
Methods inherited from class org.pentaho.platform.engine.core.output.SimpleContentItem
getActionName, getDataSource, getFileDateTime, getFileId, getFileSize, getFileVersions, getId, getInputStream, getMimeType, getName, getPath, getReader, getTitle, getUrl, makeTransient, removeAllVersions, removeVersion, setMimeType, setName, setOutputStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiContentItem

public MultiContentItem()
Method Detail

addContentItem

public void addContentItem(IContentItem contentItem)

getOutputStream

public OutputStream getOutputStream(String actionName)
                             throws IOException
Description copied from interface: IContentItem
The behavior of this method depends upon it's write mode (defined only at construction). If the write mode is WRITEMODE_KEEPVERSIONS, this method will create a new file on the disk, and add it to it's internal list of files, and return an output stream. If the write mode is WRITEMODE_OVERWRITE, this method will create an output stream and overwrite the existing file on the disk if it's found, or will create the file if it doesn't exist. If the write mode is WRITEMODE_APPEND, this method will append to the existing file on disk (if it exists), or create it if it doesn't exist.

Specified by:
getOutputStream in interface IContentItem
Overrides:
getOutputStream in class SimpleContentItem
Parameters:
actionName - The name of the action that is obtaining the output stream.
Returns:
the OutputStream to write to
Throws:
IOException

closeOutputStream

public void closeOutputStream()
Specified by:
closeOutputStream in interface IContentItem
Overrides:
closeOutputStream in class SimpleContentItem