org.apache.poi.hsmf.parsers
public final class POIFSChunkParser extends java.lang.Object
Constructor and Description |
---|
POIFSChunkParser(POIFSFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
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.
|
public POIFSChunkParser(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
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()
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.