public interface IContentItem extends IMimeTypeListener
ContentLocation
Modifier and Type | Method and Description |
---|---|
void |
closeOutputStream() |
org.pentaho.commons.connection.IPentahoStreamSource |
getDataSource() |
InputStream |
getInputStream()
Gets an input stream from the Content item.
|
String |
getMimeType() |
OutputStream |
getOutputStream(String actionName)
The behavior of this method depends upon it's write mode (defined only at construction).
|
String |
getPath() |
void |
setMimeType(String mimeType)
Sets the mime type
|
setName
String getPath()
String getMimeType()
InputStream getInputStream() throws ContentException
ContentException
org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
OutputStream getOutputStream(String actionName) throws IOException
actionName
- The name of the action that is obtaining the output stream.IOException
void closeOutputStream()
void setMimeType(String mimeType)
setMimeType
in interface IMimeTypeListener
mimeType
- The mime type to set.