RdfBinaryCodec<G> class
abstract
Base class for binary RDF codecs.
A binary codec pairs a RdfBinaryDecoder and RdfBinaryEncoder for a
specific binary RDF serialization format. It extends Codec<G, Uint8List>
(rather than Codec<G, String> like text codecs) to preserve type safety.
Implementations should provide:
- A primaryMimeType for format identification
- supportedMimeTypes for all recognized MIME types
- decoder and encoder instances for the format
- canParseBytes for heuristic binary format detection
- Inheritance
- Implementers
Constructors
- RdfBinaryCodec()
-
const
Properties
-
decoder
→ RdfBinaryDecoder<
G> -
Returns the decoder of
this, converting fromTtoS.no setteroverride -
encoder
→ RdfBinaryEncoder<
G> -
Returns the encoder from
StoT.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Uint8List, G> -
Inverts
this.no setterinherited - primaryMimeType → String
-
The primary MIME type for this codec.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedMimeTypes
→ Set<
String> -
All MIME types supported by this codec.
no setter
Methods
-
canParseBytes(
Uint8List content) → bool - Tests if the provided binary content is likely in this codec's format.
-
decode(
Uint8List input, {RdfBinaryDecoderOptions? options}) → G -
Decodes binary RDF data into an RDF data structure.
override
-
encode(
G input, {RdfBinaryEncoderOptions? options}) → Uint8List -
Encodes an RDF data structure to binary.
override
-
fuse<
R> (Codec< Uint8List, R> other) → Codec<G, R> -
Fuses
thiswithother.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withOptions(
{RdfBinaryEncoderOptions? encoder, RdfBinaryDecoderOptions? decoder}) → RdfBinaryCodec< G> - Creates a new codec instance with the specified options.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited