|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.zip.ZipContentItem
public class ZipContentItem
Todo: Document Me
| Constructor Summary | |
|---|---|
ZipContentItem(ZipRepository repository,
ZipContentLocation parent,
java.lang.String name)
|
|
ZipContentItem(ZipRepository repository,
ZipContentLocation parent,
java.util.zip.ZipEntry zipEntry,
byte[] bytes)
|
|
| Method Summary | |
|---|---|
boolean |
delete()
Attempts to delete the entity. |
java.lang.Object |
getAttribute(java.lang.String domain,
java.lang.String key)
Returns a attribute value for the given domain (namespace) and attribute-name. |
java.lang.Object |
getContentId()
Returns a unique identifier. |
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.lang.String |
getName()
Returns the name of the entry. |
java.io.OutputStream |
getOutputStream()
Tries to open and return a output stream for writing into the content item. |
ContentLocation |
getParent()
Returns a reference to the parent location. |
Repository |
getRepository()
Returns the current repository, to which tis entity belongs. |
boolean |
isReadable()
Checks, whether the content item is readable. |
boolean |
isWriteable()
Checks, whether the content item is writable. |
boolean |
setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
Updates the attribute value for the given attribute domain and name. |
void |
setRawData(byte[] rawData,
long size,
long crc32)
This method is a internal method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipContentItem(ZipRepository repository,
ZipContentLocation parent,
java.util.zip.ZipEntry zipEntry,
byte[] bytes)
public ZipContentItem(ZipRepository repository,
ZipContentLocation parent,
java.lang.String name)
| Method Detail |
|---|
public void setRawData(byte[] rawData,
long size,
long crc32)
rawData - size - crc32 -
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 ContentItempublic java.lang.String getName()
ContentEntity
getName in interface ContentEntitypublic java.lang.Object getContentId()
ContentEntity
getContentId in interface ContentEntity
public java.lang.Object getAttribute(java.lang.String domain,
java.lang.String key)
ContentEntityLibRepositoryBoot class.
getAttribute in interface ContentEntitydomain - the attribute domain.key - the name of the attribute.
public boolean setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
ContentEntity
setAttribute in interface ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.
public ContentLocation getParent()
ContentEntity
getParent in interface ContentEntitypublic Repository getRepository()
ContentEntity
getRepository in interface ContentEntitypublic boolean delete()
ContentEntity
delete in interface ContentEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||