public class FeatureCodecHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static FeatureCodecHeader |
EMPTY_HEADER
An public instance representing no header
|
static long |
NO_HEADER_END
The value of the headerEnd field when there's no header
|
Constructor and Description |
---|
FeatureCodecHeader(java.lang.Object headerValue,
long headerEnd)
Create a FeatureCodecHeader indicating the contents of the header (can be null)
and the byte position in the file where the header ends (not inclusive).
|
Modifier and Type | Method and Description |
---|---|
long |
getHeaderEnd() |
java.lang.Object |
getHeaderValue() |
boolean |
skipHeaderBytes() |
public static final long NO_HEADER_END
public static final FeatureCodecHeader EMPTY_HEADER
public FeatureCodecHeader(java.lang.Object headerValue, long headerEnd)
headerValue
- the header data read by the codecheaderEnd
- the position (not inclusive) of the end of the header. 1 would
mean just the first byte of the file is the header. Zero indicates
there's no header at allpublic java.lang.Object getHeaderValue()
public long getHeaderEnd()
public boolean skipHeaderBytes()