Class MemoryDocumentBundle
- java.lang.Object
-
- org.pentaho.reporting.libraries.docbundle.MemoryDocumentBundle
-
- All Implemented Interfaces:
DocumentBundle
,WriteableDocumentBundle
public class MemoryDocumentBundle extends Object implements WriteableDocumentBundle
A document bundle implementation that holds all entries in memory.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description MemoryDocumentBundle()
MemoryDocumentBundle(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDirectoryEntry(String name, String mimeType)
OutputStream
createEntry(String path, String mimetype)
org.pentaho.reporting.libraries.resourceloader.ResourceKey
createResourceKey(String entryName, Map factoryParameters)
org.pentaho.reporting.libraries.resourceloader.ResourceKey
getBundleKey()
org.pentaho.reporting.libraries.resourceloader.ResourceKey
getBundleMainKey()
InputStream
getEntryAsStream(String name)
String
getEntryMimeType(String name)
DocumentMetaData
getMetaData()
org.pentaho.reporting.libraries.resourceloader.ResourceManager
getResourceManager()
WriteableDocumentMetaData
getWriteableDocumentMetaData()
boolean
isEmbeddedKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey)
boolean
isEntryExists(String name)
boolean
isEntryReadable(String name)
boolean
removeEntry(String name)
-
-
-
Method Detail
-
getBundleMainKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleMainKey()
-
getResourceManager
public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
- Specified by:
getResourceManager
in interfaceDocumentBundle
-
createEntry
public OutputStream createEntry(String path, String mimetype) throws IOException
- Specified by:
createEntry
in interfaceWriteableDocumentBundle
- Throws:
IOException
-
getWriteableDocumentMetaData
public WriteableDocumentMetaData getWriteableDocumentMetaData()
- Specified by:
getWriteableDocumentMetaData
in interfaceWriteableDocumentBundle
-
getMetaData
public DocumentMetaData getMetaData()
- Specified by:
getMetaData
in interfaceDocumentBundle
-
createDirectoryEntry
public void createDirectoryEntry(String name, String mimeType) throws IOException
- Specified by:
createDirectoryEntry
in interfaceWriteableDocumentBundle
- Throws:
IOException
-
isEntryExists
public boolean isEntryExists(String name)
- Specified by:
isEntryExists
in interfaceDocumentBundle
-
isEntryReadable
public boolean isEntryReadable(String name)
- Specified by:
isEntryReadable
in interfaceDocumentBundle
-
getEntryAsStream
public InputStream getEntryAsStream(String name) throws IOException
- Specified by:
getEntryAsStream
in interfaceDocumentBundle
- Throws:
IOException
-
getEntryMimeType
public String getEntryMimeType(String name)
- Specified by:
getEntryMimeType
in interfaceDocumentBundle
-
removeEntry
public boolean removeEntry(String name)
- Specified by:
removeEntry
in interfaceWriteableDocumentBundle
-
createResourceKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey createResourceKey(String entryName, Map factoryParameters) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
- Specified by:
createResourceKey
in interfaceWriteableDocumentBundle
- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException
-
getBundleKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleKey()
- Specified by:
getBundleKey
in interfaceDocumentBundle
-
isEmbeddedKey
public boolean isEmbeddedKey(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey)
- Specified by:
isEmbeddedKey
in interfaceWriteableDocumentBundle
-
-