startChunkedConversion method

  1. @override
List2CsvSink startChunkedConversion(
  1. Sink<String> outputSink
)

Returns an input Sink into which the caller may add single rows. A single row is a List. The signature of the input sink is therefore: add(List).

The row, converted to csv, is then added to the outputSink, row by row. Every single row added to the outputSink has an eol.

The output to convert differs to this chunked conversion by the last character. The chunked conversion has an additional eol whereas the convert function does not output an eol for the last line. Note that the rfc says, that the eol for the last row is optional. Which means that the output is still rfc conform.

outputSink must be of type Sink

Implementation

@override
List2CsvSink startChunkedConversion(Sink<String> outputSink) {
  return List2CsvSink(this, outputSink);
}