public final class Chunk
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Chunk.Command
A command in the visio file.
(visio 文件中的命令。)
|
Constructor and Description |
---|
Chunk(ChunkHeader header, ChunkTrailer trailer, ChunkSeparator separator, byte[] contents) |
Modifier and Type | Method and 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
(从 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
(获取该块的预告片(如果存在))
|
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()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.