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 InputStreamgetInputStream()StringgetMimeType()OutputStreamgetOutputStream()booleanisReadable()booleanisWriteable()-
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:
getMimeTypein 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:
getOutputStreamin interfaceorg.pentaho.reporting.libraries.repository.ContentItem- Throws:
org.pentaho.reporting.libraries.repository.ContentIOExceptionIOException
-
getInputStream
public InputStream getInputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
- Specified by:
getInputStreamin interfaceorg.pentaho.reporting.libraries.repository.ContentItem- Throws:
org.pentaho.reporting.libraries.repository.ContentIOExceptionIOException
-
isReadable
public boolean isReadable()
- Specified by:
isReadablein interfaceorg.pentaho.reporting.libraries.repository.ContentItem
-
isWriteable
public boolean isWriteable()
- Specified by:
isWriteablein interfaceorg.pentaho.reporting.libraries.repository.ContentItem
-
-