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.
|
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
|
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 supporteddata
- the chunk dataoffset
- the start offset in the chunk datapublic static int getHeaderSize(int documentVersion)
documentVersion
- the documentVersion - 4 and higher is supportedpublic 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 2020 The Apache Software Foundation or its licensors, as applicable.