public abstract class ChunkHeader
extends java.lang.Object
Constructor and Description |
---|
ChunkHeader() |
Modifier and Type | Method and Description |
---|---|
static ChunkHeader |
createChunkHeader(int documentVersion, byte[] data, int offset)
Creates the appropriate ChunkHeader for the Chunk Header at the given location, for the given document version.
(为给定文档版本的给定位置的 Chunk Header 创建适当的 ChunkHeader)
|
abstract java.nio.charset.Charset |
getChunkCharset() |
static int |
getHeaderSize(int documentVersion)
Returns the size of a chunk header for the given document version.
(返回给定文档版本的块头的大小。)
|
int |
getId() |
int |
getLength()
Returns the length of the trunk, excluding the length of the header, trailer or separator.
(返回主干的长度,不包括标题、拖车或分隔符的长度)
|
abstract int |
getSizeInBytes() |
int |
getType()
Returns the type of the chunk, which affects the mandatory information
(返回chunk的类型,影响必填信息)
|
int |
getUnknown1() |
abstract boolean |
hasSeparator() |
abstract boolean |
hasTrailer() |
public static ChunkHeader createChunkHeader(int documentVersion, byte[] data, int offset)
documentVersion
- the documentVersion - 4 and higher is supported
(documentVersion - 支持 documentVersion - 4 及更高版本)
data
- the chunk data
()
offset
- the start offset in the chunk data
(offset - 块数据中的起始偏移量)
public static int getHeaderSize(int documentVersion)
documentVersion
- the documentVersion - 4 and higher is supported
(documentVersion - 支持 documentVersion - 4 及更高版本)
public abstract int getSizeInBytes()
public abstract boolean hasTrailer()
public abstract boolean hasSeparator()
public abstract java.nio.charset.Charset getChunkCharset()
public int getId()
public int getLength()
public int getType()
public int getUnknown1()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.