public final class Chunk
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Chunk.BlockOffsetCommand |
A special kind of command that holds the offset to
a block
|
static class |
Chunk.Command |
A command in the visio file.
|
Modifier and Type | Field | Description |
---|---|---|
protected ChunkFactory.CommandDefinition[] |
commandDefinitions |
The possible different commands we can hold
|
Constructor | Description |
---|---|
Chunk(ChunkHeader header,
ChunkTrailer trailer,
ChunkSeparator separator,
byte[] contents) |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
_getContents() |
|
ChunkFactory.CommandDefinition[] |
getCommandDefinitions() |
Gets the command definitions, which define and describe much
of the data held by the chunk.
|
Chunk.Command[] |
getCommands() |
|
ChunkHeader |
getHeader() |
|
java.lang.String |
getName() |
Get the name of the chunk, as found from the CommandDefinitions
|
int |
getOnDiskSize() |
Returns the size of the chunk, including any
headers, trailers and separators.
|
ChunkSeparator |
getSeparator() |
Gets the separator between this chunk and the next, if it exists
|
ChunkTrailer |
getTrailer() |
Gets the trailer for this chunk, if it exists
|
protected void |
processCommands() |
Uses our CommandDefinitions to process the commands
our chunk type has, and figure out the
values for them.
|
protected ChunkFactory.CommandDefinition[] commandDefinitions
public Chunk(ChunkHeader header, ChunkTrailer trailer, ChunkSeparator separator, byte[] contents)
public byte[] _getContents()
public ChunkHeader getHeader()
public ChunkSeparator getSeparator()
public ChunkTrailer getTrailer()
public ChunkFactory.CommandDefinition[] getCommandDefinitions()
public Chunk.Command[] getCommands()
public java.lang.String getName()
public int getOnDiskSize()
protected void processCommands()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.