Emitter

Emitter expects events obeying the following grammar:
stream ::= STREAM-START document* STREAM-END
document ::= DOCUMENT-START node DOCUMENT-END
node ::= SCALAR | sequence | mapping
sequence ::= SEQUENCE-START node* SEQUENCE-END
mapping ::= MAPPING-START (node node)* MAPPING-END

Constructors

Link copied to clipboard
constructor(opts: DumpSettings, stream: StreamDataWriter)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun emit(event: Event)

Serialise event to bytes

Link copied to clipboard
fun writeTagDirective(handleText: String, prefixText: String)
Link copied to clipboard
fun writeVersionDirective(versionText: String)