Class FileObjectContentItem
- java.lang.Object
-
- org.pentaho.di.trans.steps.pentahoreporting.urlrepository.FileObjectContentEntity
-
- org.pentaho.di.trans.steps.pentahoreporting.urlrepository.FileObjectContentItem
-
- All Implemented Interfaces:
Serializable
,org.pentaho.reporting.libraries.repository.ContentEntity
,org.pentaho.reporting.libraries.repository.ContentItem
public class FileObjectContentItem extends FileObjectContentEntity implements org.pentaho.reporting.libraries.repository.ContentItem
A content item wrapping a file.- Author:
- Thomas Morgner, Alexander Buloichik
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileObjectContentItem(org.pentaho.reporting.libraries.repository.ContentLocation parent, org.apache.commons.vfs2.FileObject backend)
Creates a new file based content item for the given file and parent location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
String
getMimeType()
OutputStream
getOutputStream()
boolean
isReadable()
boolean
isWriteable()
-
Methods inherited from class org.pentaho.di.trans.steps.pentahoreporting.urlrepository.FileObjectContentEntity
delete, getAttribute, getBackend, getContentId, getName, getParent, getRepository, setAttribute
-
-
-
-
Constructor Detail
-
FileObjectContentItem
public FileObjectContentItem(org.pentaho.reporting.libraries.repository.ContentLocation parent, org.apache.commons.vfs2.FileObject backend)
Creates a new file based content item for the given file and parent location.- Parameters:
parent
- the parent.backend
- the backend.
-
-
Method Detail
-
getMimeType
public String getMimeType() throws org.pentaho.reporting.libraries.repository.ContentIOException
- Specified by:
getMimeType
in interfaceorg.pentaho.reporting.libraries.repository.ContentItem
- Throws:
org.pentaho.reporting.libraries.repository.ContentIOException
-
getOutputStream
public OutputStream getOutputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
- Specified by:
getOutputStream
in interfaceorg.pentaho.reporting.libraries.repository.ContentItem
- Throws:
org.pentaho.reporting.libraries.repository.ContentIOException
IOException
-
getInputStream
public InputStream getInputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
- Specified by:
getInputStream
in interfaceorg.pentaho.reporting.libraries.repository.ContentItem
- Throws:
org.pentaho.reporting.libraries.repository.ContentIOException
IOException
-
isReadable
public boolean isReadable()
- Specified by:
isReadable
in interfaceorg.pentaho.reporting.libraries.repository.ContentItem
-
isWriteable
public boolean isWriteable()
- Specified by:
isWriteable
in interfaceorg.pentaho.reporting.libraries.repository.ContentItem
-
-