|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.libraries.repository.dummy.DummyContentItem
public class DummyContentItem
A dummy content item, that does not provide any input and that does swallow all content fed into it.
| Constructor Summary | |
|---|---|
DummyContentItem(ContentLocation parent,
java.lang.String name)
Creates a new dummy item for the given parent and having the given name. |
|
| Method Summary | |
|---|---|
boolean |
delete()
A dummy location does not have content and therefore does not support the delete command. |
java.lang.Object |
getAttribute(java.lang.String domain,
java.lang.String key)
Dummy locations do not have attributes, therefore this method always returns null. |
java.lang.Object |
getContentId()
Returns the full pathname of the location. |
java.io.InputStream |
getInputStream()
Returns an new empty input stream that does not allow to read a single byte from it. |
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()
Returns a NullOutputStream that ignores all content given to it. |
ContentLocation |
getParent()
Returns the parent, if there is any. |
Repository |
getRepository()
Returns the parent repository for this location. |
boolean |
isReadable()
Claims that the item is readable. |
boolean |
isWriteable()
Claims that the item is writable. |
boolean |
setAttribute(java.lang.String domain,
java.lang.String key,
java.lang.Object value)
Dummy locations do not allow to set attributes, therefore this method always returns false. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyContentItem(ContentLocation parent,
java.lang.String name)
parent - the parent.name - the name of the new item.| Method Detail |
|---|
public java.lang.String getMimeType()
throws ContentIOException
getMimeType in interface ContentItemContentIOException - if an error occured.public java.io.OutputStream getOutputStream()
getOutputStream in interface ContentItempublic java.io.InputStream getInputStream()
getInputStream in interface ContentItempublic boolean isReadable()
isReadable in interface ContentItempublic boolean isWriteable()
isWriteable in interface ContentItempublic java.lang.String getName()
getName in interface ContentEntitypublic java.lang.Object getContentId()
getContentId in interface ContentEntity
public java.lang.Object getAttribute(java.lang.String domain,
java.lang.String key)
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)
setAttribute in interface ContentEntitydomain - the attribute domain.key - the attribute namevalue - the new attribute value.
public ContentLocation getParent()
getParent in interface ContentEntitypublic Repository getRepository()
getRepository in interface ContentEntitypublic boolean delete()
delete in interface ContentEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||