Package org.apache.poi.hdgf.chunks
Class ChunkFactory
java.lang.Object
org.apache.poi.hdgf.chunks.ChunkFactory
Factor class to create the appropriate chunks, which
needs the version of the file to process the chunk header
and trailer areas.
Makes use of chunks_parse_cmds.tbl from vsdump to be able
to process the chunk value area
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The definition of a Command, which a chunk may hold. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateChunk
(byte[] data, int offset) Creates the appropriate chunk at the given location.int
-
Constructor Details
-
ChunkFactory
- Throws:
IOException
-
-
Method Details
-
getVersion
public int getVersion() -
createChunk
Creates the appropriate chunk at the given location.- Parameters:
data
- the chunk bytesoffset
- the offset into the chunk bytes array to start reading from- Returns:
- the new Chunk
-