Scoop API

scoop:scoop.http:0.1.0

NdjsonDecoder

class NdjsonDecoder

source · line 6
public
public class NdjsonDecoder public constructor(maxRecordBytes: Long = 1048576L) : Closeable

Incremental UTF-8 NDJSON record framing; JSON interpretation belongs to the caller.

function nextRecord

source · line 42
public
public fun nextRecord(): String?

Returns an exact record, including an empty string for an empty line.

function endInput

source · line 50
public
public fun endInput(): Unit

Delivers a final nonempty line even without a trailing LF; invalid UTF-8 still fails.