org.pentaho.reporting.libraries.repository.file

Class FileContentItem

public class FileContentItem extends FileContentEntity implements ContentItem

A content item wrapping a file.

Author: Thomas Morgner

Constructor Summary
FileContentItem(ContentLocation parent, File backend)
Creates a new file based content item for the given file and parent location.
Method Summary
InputStreamgetInputStream()
StringgetMimeType()
OutputStreamgetOutputStream()
booleanisReadable()
booleanisWriteable()

Constructor Detail

FileContentItem

public FileContentItem(ContentLocation parent, File backend)
Creates a new file based content item for the given file and parent location.

Parameters: parent the parent. backend the backend.

Method Detail

getInputStream

public InputStream getInputStream()

getMimeType

public String getMimeType()

getOutputStream

public OutputStream getOutputStream()

isReadable

public boolean isReadable()

isWriteable

public boolean isWriteable()