public abstract class ChunkHeader extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
id |
protected int |
length |
protected int |
type |
protected int |
unknown1 |
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 Charset |
getChunkCharset() |
static int |
getHeaderSize(int documentVersion)
Returns the size of a chunk header for the given document version.
|
int |
getId()
Returns the ID/IX of the chunk
|
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() |
protected int type
protected int id
protected int length
protected int unknown1
public static ChunkHeader createChunkHeader(int documentVersion, byte[] data, int offset)
public static int getHeaderSize(int documentVersion)
public abstract int getSizeInBytes()
public abstract boolean hasTrailer()
public abstract boolean hasSeparator()
public abstract Charset getChunkCharset()
public int getId()
public int getLength()
public int getType()
public int getUnknown1()
Copyright © 2020. All rights reserved.