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
-
Constructor Summary
ConstructorDescriptionChunk
(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 exists
-
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
-