detectCodec method

RdfBinaryGraphCodec? detectCodec(
  1. Uint8List content
)

Attempts to detect a codec from binary content.

Returns the first codec whose canParseBytes returns true, or null.

Implementation

RdfBinaryGraphCodec? detectCodec(Uint8List content) {
  final result = _registry.detectCodec(content);
  if (result == null) return null;
  return result is RdfBinaryGraphCodec
      ? result
      : _RdfBinaryGraphCodecWrapper(result);
}