Class SimpleContentItem
- java.lang.Object
-
- org.pentaho.platform.engine.core.output.SimpleContentItem
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IMimeTypeListener
,org.pentaho.platform.api.repository.IContentItem
- Direct Known Subclasses:
BufferedContentItem
,FileContentItem
,MultiContentItem
public class SimpleContentItem extends Object implements org.pentaho.platform.api.repository.IContentItem
-
-
Constructor Summary
Constructors Constructor Description SimpleContentItem()
SimpleContentItem(OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeOutputStream()
org.pentaho.commons.connection.IPentahoStreamSource
getDataSource()
InputStream
getInputStream()
String
getMimeType()
OutputStream
getOutputStream(String actionName)
String
getPath()
void
setMimeType(String mimeType)
void
setName(String name)
void
setOutputStream(OutputStream outputStream)
-
-
-
Constructor Detail
-
SimpleContentItem
public SimpleContentItem()
-
SimpleContentItem
public SimpleContentItem(OutputStream outputStream)
-
-
Method Detail
-
closeOutputStream
public void closeOutputStream()
- Specified by:
closeOutputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
setMimeType
public void setMimeType(String mimeType)
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
getInputStream
public InputStream getInputStream() throws org.pentaho.platform.api.repository.ContentException
- Specified by:
getInputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Throws:
org.pentaho.platform.api.repository.ContentException
-
getOutputStream
public OutputStream getOutputStream(String actionName) throws IOException
- Specified by:
getOutputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Throws:
IOException
-
setOutputStream
public void setOutputStream(OutputStream outputStream)
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
getDataSource
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
- Specified by:
getDataSource
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
-