decoder library

CSV decoding — batch, streaming, and auto-detection.

Two decoder implementations are provided:

  • FastDecoder — high-performance batch decoder using byte-level parsing. Supports typed output (decode), string-only (decodeStrings), flexible/lenient (decodeFlexible), and per-type decoders (decodeIntegers, decodeDoubles, decodeBooleans).
  • CsvDecoder — streaming decoder extending StreamTransformerBase. Handles arbitrary chunk boundaries (mid-field, mid-escape, mid-CRLF).

DelimiterDetector provides automatic delimiter detection by analyzing the first few rows of input data.

Classes

CsvDecoder
Streaming CSV decoder using a chunked state machine.
DelimiterDetector
Auto-detects field delimiter, BOM, and Excel sep= hint from input.
FastDecoder
High-performance batch CSV decoder using byte-level (codeUnits) parsing.

Extensions

FastDecoderFlexible on FastDecoder
Flexible and typed decode operations for FastDecoder.