Class MemoryDocumentBundle
java.lang.Object
org.pentaho.reporting.libraries.docbundle.MemoryDocumentBundle
- All Implemented Interfaces:
DocumentBundle
,WriteableDocumentBundle
A document bundle implementation that holds all entries in memory.
- Author:
- Thomas Morgner
-
Constructor Summary
ConstructorDescriptionMemoryDocumentBundle
(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createDirectoryEntry
(String name, String mimeType) createEntry
(String path, String mimetype) org.pentaho.reporting.libraries.resourceloader.ResourceKey
createResourceKey
(String entryName, Map factoryParameters) org.pentaho.reporting.libraries.resourceloader.ResourceKey
org.pentaho.reporting.libraries.resourceloader.ResourceKey
getEntryAsStream
(String name) getEntryMimeType
(String name) org.pentaho.reporting.libraries.resourceloader.ResourceManager
boolean
isEmbeddedKey
(org.pentaho.reporting.libraries.resourceloader.ResourceKey resourceKey) boolean
isEntryExists
(String name) boolean
isEntryReadable
(String name) boolean
removeEntry
(String name)
-
Constructor Details
-
MemoryDocumentBundle
public MemoryDocumentBundle() -
MemoryDocumentBundle
public MemoryDocumentBundle(org.pentaho.reporting.libraries.resourceloader.ResourceKey parent)
-
-
Method Details
-
getBundleMainKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleMainKey() -
getResourceManager
public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()- Specified by:
getResourceManager
in interfaceDocumentBundle
-
createEntry
- Specified by:
createEntry
in interfaceWriteableDocumentBundle
- Throws:
IOException
-
getWriteableDocumentMetaData
- Specified by:
getWriteableDocumentMetaData
in interfaceWriteableDocumentBundle
-
getMetaData
- Specified by:
getMetaData
in interfaceDocumentBundle
-
createDirectoryEntry
- Specified by:
createDirectoryEntry
in interfaceWriteableDocumentBundle
- Throws:
IOException
-
isEntryExists
- Specified by:
isEntryExists
in interfaceDocumentBundle
-
isEntryReadable
- Specified by:
isEntryReadable
in interfaceDocumentBundle
-
getEntryAsStream
- Specified by:
getEntryAsStream
in interfaceDocumentBundle
- Throws:
IOException
-
getEntryMimeType
- Specified by:
getEntryMimeType
in interfaceDocumentBundle
-
removeEntry
- 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
-