public class FeatureCodecHeader extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static FeatureCodecHeader |
EMPTY_HEADER |
A public instance representing no header
|
static long |
NO_HEADER_END |
The value of the headerEnd field when there's no header
|
| Constructor | Description |
|---|---|
FeatureCodecHeader(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 | Description |
|---|---|---|
long |
getHeaderEnd() |
|
Object |
getHeaderValue() |
|
boolean |
skipHeaderBytes() |
public static final long NO_HEADER_END
public static final FeatureCodecHeader EMPTY_HEADER
public FeatureCodecHeader(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 Object getHeaderValue()
public long getHeaderEnd()
public boolean skipHeaderBytes()