Package org.eclipse.rdf4j.rio.hdt
Class HDTHeader
java.lang.Object
org.eclipse.rdf4j.rio.hdt.HDTPart
org.eclipse.rdf4j.rio.hdt.HDTHeader
HDT Header Part.
This part starts with $HDT
, followed by a byte indicating the type of the part, the NULL-terminated
string for the format, and optionally one or more key=value;
properties.
Then a NULL
byte, followed by the 16-bit CRC ($HDT
and NULL
included).
Structure:
+------+------+--------+------+------------+------+-------+ | $HDT | type | format | NULL | key=value; | NULL | CRC16 | +------+------+--------+------+------------+------+-------+
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
HDTPart.Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final byte[]
protected static final String
private byte[]
Fields inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
COOKIE, name, pos, properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
Get raw header data (byte array data stored as NTriples)protected void
parse
(InputStream is) Parse from input streamprivate byte[]
parseHeaderData
(InputStream is, int len) Parse header data with metadata in NTriples format.Methods inherited from class org.eclipse.rdf4j.rio.hdt.HDTPart
checkControl, checkCRC, checkFormat, countToNull, getDebugPartStr, getIntegerProperty, getProperties, getProperties, mapProperties, readToNull
-
Field Details
-
HEADER_FORMAT
protected static final byte[] HEADER_FORMAT -
HEADER_LENGTH
- See Also:
-
headerData
private byte[] headerData
-
-
Constructor Details
-
HDTHeader
HDTHeader()
-
-
Method Details
-
parse
Description copied from class:HDTPart
Parse from input stream- Specified by:
parse
in classHDTPart
- Parameters:
is
-- Throws:
IOException
-
getHeaderData
protected byte[] getHeaderData()Get raw header data (byte array data stored as NTriples)- Returns:
- byte array
-
parseHeaderData
Parse header data with metadata in NTriples format.- Parameters:
is
-len
-- Throws:
IOException
-