|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hsmf.parsers.POIFSChunkParser
public final class POIFSChunkParser
Provides a HashMap with the ability to parse a PIOFS object and provide an 'easy to access' hashmap structure for the document chunks inside it.
Constructor Summary | |
---|---|
POIFSChunkParser(POIFSFileSystem fs)
|
Method Summary | |
---|---|
java.util.Map |
getAttachmentList()
|
java.lang.Object |
getChunk(java.util.HashMap dirMap,
java.lang.String entryName)
Pull the chunk data that's stored in this object's hashmap out and return it as a HashMap. |
java.util.HashMap |
getDirectoryChunk(java.lang.String directoryName)
Pull a directory/hashmap out of this hashmap and return it |
Chunk |
getDocumentNode(Chunk chunk)
Pulls a Chunk out of this objects root Node tree. |
Chunk |
getDocumentNode(java.util.HashMap dirNode,
Chunk chunk)
Pulls a ByteArrayOutputStream from this objects HashMap, this can be used to read a byte array of the contents of the given chunk. |
POIFSFileSystem |
getFileSystem()
Get a reference to the FileSystem object that this object is currently using. |
Chunks |
identifyChunks()
Returns a list of the standard chunk types, as appropriate for the chunks we find in the file. |
void |
reparseFileSystem()
Reparse the FileSystem object, resetting all the chunks stored in this object |
void |
setFileSystem(POIFSFileSystem fs)
Set the POIFileSystem object that this object is using. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POIFSChunkParser(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void setFileSystem(POIFSFileSystem fs) throws java.io.IOException
fs
-
java.io.IOException
public POIFSFileSystem getFileSystem()
public void reparseFileSystem() throws java.io.IOException
java.io.IOException
public Chunks identifyChunks()
public java.lang.Object getChunk(java.util.HashMap dirMap, java.lang.String entryName)
entryName
- public java.util.HashMap getDirectoryChunk(java.lang.String directoryName) throws DirectoryChunkNotFoundException
directoryName
-
DirectoryChunkNotFoundException
- This is thrown should the directoryMap HashMap on this object be null
or for some reason the directory is not found, is equal to null, or is for some reason not a HashMap/aka Directory Node.public Chunk getDocumentNode(java.util.HashMap dirNode, Chunk chunk) throws ChunkNotFoundException
dirNode
- chunk
-
ChunkNotFoundException
public Chunk getDocumentNode(Chunk chunk) throws ChunkNotFoundException
chunk
-
ChunkNotFoundException
public java.util.Map getAttachmentList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |