org.pentaho.platform.engine.core.output
Class MultiContentItem
java.lang.Object
org.pentaho.platform.engine.core.output.SimpleContentItem
org.pentaho.platform.engine.core.output.MultiContentItem
- All Implemented Interfaces:
- IMimeTypeListener, IContentItem
public class MultiContentItem
- extends SimpleContentItem
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 |
MultiContentItem
public MultiContentItem()
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