AbstractThe type returned by read operations
The type yielded by stream operations (defaults to T)
Creates a new CSV entity.
The type returned by read operations
The type yielded by stream operations (defaults to T)
OptionalasyncIterable: ByteBuffer | ByteStreamOptional byte stream or buffer to parse
Optionaloptions: CsvEntityOptionsConfiguration options for parsing
OptionalnewlineMakes this entity async iterable using the asynchronous stream.
An async generator that yields values of type S
Makes this entity iterable using the synchronous stream.
A generator that yields values of type S
Consumes the entity if it hasn't been consumed yet. This ensures the buffer advances to the end of this entity.
Asynchronously consumes the entity if it hasn't been consumed yet. This ensures the buffer advances to the end of this entity.
A promise that resolves when consumption is complete
Protected AbstractparseProtected AbstractparseReads and parses the entire entity synchronously. Marks the entity as consumed after reading.
The parsed result of type T
Reads and parses the entire entity asynchronously. Marks the entity as consumed after reading.
A promise that resolves to the parsed result of type T
Returns a synchronous generator that yields chunks of type S. Marks the entity as consumed when iteration completes.
A generator that yields values of type S
Returns an asynchronous generator that yields chunks of type S. Handles buffering and automatically reads more data as needed.
An async generator that yields values of type S
Protected Abstractstream
Abstract base class for CSV entities that supports both synchronous and asynchronous parsing. Provides common functionality for reading and streaming CSV data.