|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentItem
A content item holds the actual content. On a file system, this would be a file. Whether reading and writing the same content item at the same time is allowed is implementation specific.
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 interface org.pentaho.reporting.libraries.repository.ContentEntity |
---|
delete, getAttribute, getContentId, getName, getParent, getRepository, setAttribute |
Method Detail |
---|
java.lang.String getMimeType() throws ContentIOException
ContentIOException
- if an error occured.java.io.OutputStream getOutputStream() throws ContentIOException, java.io.IOException
ContentIOException
- if an repository related error prevents the creation of the output stream.
java.io.IOException
- if an IO error occurs.java.io.InputStream getInputStream() throws ContentIOException, java.io.IOException
ContentIOException
- if an repository related error prevents the creation of the input stream.
java.io.IOException
- if an IO error occurs.boolean isReadable()
boolean isWriteable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |