Composer

class Composer(settings: LoadSettings, parser: Parser) : Iterator<Node>

Creates a node graph from parser events.

Corresponds to the 'Composer' step as described in chapter 3.1.2 of the YAML Specification.

It implements Iterator to get the stream of Nodes from the input.

Constructors

Link copied to clipboard
constructor(settings: LoadSettings, parser: Parser)

Functions

Link copied to clipboard

Reads a document from a source that contains only one document.

Link copied to clipboard
open operator override fun hasNext(): Boolean

Checks if further documents are available.

Link copied to clipboard
open operator override fun next(): Node

Reads and composes the next document.