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, setAttribute
public 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.ContentItem
org.pentaho.reporting.libraries.repository.ContentIOException
public OutputStream getOutputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
getOutputStream
in interface org.pentaho.reporting.libraries.repository.ContentItem
org.pentaho.reporting.libraries.repository.ContentIOException
IOException
public InputStream getInputStream() throws org.pentaho.reporting.libraries.repository.ContentIOException, IOException
getInputStream
in interface org.pentaho.reporting.libraries.repository.ContentItem
org.pentaho.reporting.libraries.repository.ContentIOException
IOException
public boolean isReadable()
isReadable
in interface org.pentaho.reporting.libraries.repository.ContentItem
public boolean isWriteable()
isWriteable
in interface org.pentaho.reporting.libraries.repository.ContentItem
Copyright © 2018 Hitachi Vantara. All rights reserved.