A Converter that splits a String into individual lines.

A line is terminated by either a CR (U+000D), a LF (U+000A), a CR+LF sequence (DOS line ending), and a final non-empty line can be ended by the end of the string.

The returned lines do not contain the line terminators.

Inheritance

Static Methods

split(String lines, [int start = 0, int end]) → Iterable<String>

Split lines into individual lines.

Constructors

LineSplitter()
const

Methods

bind(Stream stream) → Stream
inherited

Transform the incoming stream's events.

convert(String data) → List<String>

Converts input and returns the result of the conversion.

fuse(Converter<List<String>> other) → Converter<String>
inherited

Fuses this with other.

startChunkedConversion(Sink<String> sink) → StringConversionSink

Starts a chunked conversion.