public final class Emitter extends Object implements Emitable
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
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_INDENT
indent should not be more than 10 spaces
|
static int |
MIN_INDENT
indent cannot be zero spaces
|
| Constructor and Description |
|---|
Emitter(DumpSettings opts,
StreamDataWriter stream)
Create
|
| Modifier and Type | Method and Description |
|---|---|
void |
emit(org.snakeyaml.engine.v2.events.Event event)
Serialise event to bytes
|
public static final int MIN_INDENT
public static final int MAX_INDENT
public Emitter(DumpSettings opts, StreamDataWriter stream)
opts - - configuration optionsstream - - output streamCopyright © 2018–2022. All rights reserved.