withOptions method

  1. @override
RdfDatasetDecoder withOptions(
  1. RdfGraphDecoderOptions options
)

Creates a new decoder with the specified options

This method returns a new instance of the decoder configured with the provided options. The original decoder instance remains unchanged.

Parameters:

  • options Configuration options to customize the decoder's behavior.

Returns:

  • A new RdfDatasetDecoder instance with the specified options applied.

This pattern allows for immutable configuration of decoders and enables method chaining for readable configuration code.

Implementation

@override
RdfDatasetDecoder withOptions(RdfGraphDecoderOptions options) =>
    NQuadsDecoder(
        options: NQuadsDecoderOptions.from(options),
        iriTermFactory: _iriTermFactory);