binary-streams / loggersoft.kotlin.streams / StreamAdapterOutput / forLines

forLines

fun forLines(encoding: StringEncoding, byteOrder: ByteOrder, block: (lines: Sequence<String>) -> Unit): Nothing

Calls the block callback giving it a sequence of all the lines in the stream.

Parameters

encoding - encoding of the string.

byteOrder - byte order for UTF-16 and UTF-32 encoding.