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.IOExceptionpublic void setFileSystem(POIFSFileSystem fs) throws java.io.IOException
fs - java.io.IOExceptionpublic POIFSFileSystem getFileSystem()
public void reparseFileSystem()
throws java.io.IOException
java.io.IOExceptionpublic 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 - ChunkNotFoundExceptionpublic Chunk getDocumentNode(Chunk chunk) throws ChunkNotFoundException
chunk - ChunkNotFoundExceptionpublic java.util.Map getAttachmentList()
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.