type

TrioReader

@Js
class TrioReader : Obj

Read Haystack data in Trio format.

constructors

make

Wrap input stream

methods

eachDict

Iterate through the entire stream reading dicts.

readAllDicts

Read all dicts from the stream and close it.

readDict

Read next dict from the stream.

readGrid

Return recs as simple grid (no grid or column level meta)

Slot Details

eachDict

Void eachDict(|Dict| f)

Iterate through the entire stream reading dicts. The stream is guaranteed to be closed when done.

make

new make(InStream in)

Wrap input stream

readAllDicts

Dict[] readAllDicts()

Read all dicts from the stream and close it.

readDict

Dict? readDict(Bool checked := true)

Read next dict from the stream. If end of stream is detected then reutrn null or raise exception based on checked flag.

readGrid

virtual override Grid readGrid()

Return recs as simple grid (no grid or column level meta)