|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.file.FileContentEntity
org.pentaho.reporting.libraries.repository.file.FileContentItem
public class FileContentItem
A content item wrapping a file.
| Constructor Summary | |
|---|---|
FileContentItem(ContentLocation parent,
java.io.File backend)
Creates a new file based content item for the given file and parent location. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
Tries to open and return a input stream for reading from the content item. |
java.lang.String |
getMimeType()
Returns the mime type for the content entity. |
java.io.OutputStream |
getOutputStream()
Tries to open and return a output stream for writing into the content item. |
boolean |
isReadable()
Checks, whether the content item is readable. |
boolean |
isWriteable()
Checks, whether the content item is writable. |
| Methods inherited from class org.pentaho.reporting.libraries.repository.file.FileContentEntity |
|---|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.pentaho.reporting.libraries.repository.ContentEntity |
|---|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute |
| Constructor Detail |
|---|
public FileContentItem(ContentLocation parent,
java.io.File backend)
parent - the parent.backend - the backend.| Method Detail |
|---|
public java.lang.String getMimeType()
throws ContentIOException
ContentItem
getMimeType in interface ContentItemContentIOException - if an error occured.
public java.io.OutputStream getOutputStream()
throws ContentIOException,
java.io.IOException
ContentItem
getOutputStream in interface ContentItemContentIOException - if an repository related error prevents the creation of the output stream.
java.io.IOException - if an IO error occurs.
public java.io.InputStream getInputStream()
throws ContentIOException,
java.io.IOException
ContentItem
getInputStream in interface ContentItemContentIOException - if an repository related error prevents the creation of the input stream.
java.io.IOException - if an IO error occurs.public boolean isReadable()
ContentItem
isReadable in interface ContentItempublic boolean isWriteable()
ContentItem
isWriteable in interface ContentItem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||