Utf8StringNewlineStrategy

class Utf8StringNewlineStrategy : RecordStrategy<String>

Produces single string records separated by newlines.

Constructors

Utf8StringNewlineStrategy
Link copied to clipboard
fun Utf8StringNewlineStrategy()

Functions

bytesToRecords
Link copied to clipboard
open override fun bytesToRecords(source: ByteString): List<String>
Converts a ByteString to records.
calculateNextRecordBytes
Link copied to clipboard
open override fun calculateNextRecordBytes(source: BufferedSource): Long
Calculates the byte offset of the start of the next record.