public class FileObjectContentItem extends FileObjectContentEntity implements org.pentaho.reporting.libraries.repository.ContentItem
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
String |
getMimeType() |
OutputStream |
getOutputStream() |
boolean |
isReadable() |
boolean |
isWriteable() |
delete, getAttribute, getBackend, getContentId, getName, getParent, getRepository, setAttributepublic FileObjectContentItem(org.pentaho.reporting.libraries.repository.ContentLocation parent,
org.apache.commons.vfs2.FileObject backend)
parent - the parent.backend - the backend.public String getMimeType() throws org.pentaho.reporting.libraries.repository.ContentIOException
getMimeType in interface org.pentaho.reporting.libraries.repository.ContentItemorg.pentaho.reporting.libraries.repository.ContentIOExceptionpublic OutputStream getOutputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
getOutputStream in interface org.pentaho.reporting.libraries.repository.ContentItemorg.pentaho.reporting.libraries.repository.ContentIOExceptionIOExceptionpublic InputStream getInputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
getInputStream in interface org.pentaho.reporting.libraries.repository.ContentItemorg.pentaho.reporting.libraries.repository.ContentIOExceptionIOExceptionpublic boolean isReadable()
isReadable in interface org.pentaho.reporting.libraries.repository.ContentItempublic boolean isWriteable()
isWriteable in interface org.pentaho.reporting.libraries.repository.ContentItemCopyright © 2018 Hitachi Vantara. All rights reserved.