Package org.apache.poi.hdgf.chunks
Class Chunk
java.lang.Object
org.apache.poi.hdgf.chunks.Chunk
Base of all chunks, which hold data, flags etc
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ChunkFactory.CommandDefinition[]
The possible different commands we can hold -
Constructor Summary
ConstructorsConstructorDescriptionChunk
(ChunkHeader header, ChunkTrailer trailer, ChunkSeparator separator, byte[] contents) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Gets the command definitions, which define and describe much of the data held by the chunk.getName()
Get the name of the chunk, as found from the CommandDefinitionsint
Returns the size of the chunk, including any headers, trailers and separators.Gets the separator between this chunk and the next, if it existsGets the trailer for this chunk, if it existsprotected void
Uses our CommandDefinitions to process the commands our chunk type has, and figure out the values for them.
-
Field Details
-
commandDefinitions
The possible different commands we can hold
-
-
Constructor Details
-
Chunk
-
-
Method Details
-
_getContents
public byte[] _getContents() -
getHeader
-
getSeparator
Gets the separator between this chunk and the next, if it exists- Returns:
- the separator
-
getTrailer
Gets the trailer for this chunk, if it exists- Returns:
- the trailer
-
getCommandDefinitions
Gets the command definitions, which define and describe much of the data held by the chunk.- Returns:
- the command definitions
-
getCommands
-
getName
Get the name of the chunk, as found from the CommandDefinitions- Returns:
- the name of the chunk
-
getOnDiskSize
public int getOnDiskSize()Returns the size of the chunk, including any headers, trailers and separators.- Returns:
- the size of the chunk
-
processCommands
protected void processCommands()Uses our CommandDefinitions to process the commands our chunk type has, and figure out the values for them.
-