public final class Header
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Header> |
COMPARATOR_BY_OFFSET |
static java.util.Comparator<Header> |
COMPARATOR_BY_TAG |
Constructor and Description |
---|
Header(int tag)
Constructor.
|
Header(int tag,
int length)
Constructor.
|
Header(int tag,
long checksum,
int offset,
int length)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
checksum()
Get the checksum for the table as recorded in the table record header.
|
boolean |
checksumValid()
Is the checksum valid.
|
boolean |
equals(java.lang.Object obj)
Checks equality of this Header against another object.
|
int |
hashCode()
Computes the hashcode for this Header .
|
int |
length()
Get the length of the table as recorded in the table record header.
|
boolean |
lengthValid()
Is the length in the header valid.
|
int |
offset()
Get the table offset.
|
boolean |
offsetValid()
Is the offset in the header valid.
|
int |
tag()
Get the table tag.
|
java.lang.String |
toString() |
public static final java.util.Comparator<Header> COMPARATOR_BY_OFFSET
public static final java.util.Comparator<Header> COMPARATOR_BY_TAG
public Header(int tag, long checksum, int offset, int length)
tag
- offset
- length
- checksum
- public Header(int tag, int length)
tag
- length
- public Header(int tag)
tag
- public int tag()
public int offset()
public boolean offsetValid()
public int length()
public boolean lengthValid()
public long checksum()
public boolean checksumValid()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object