Emitable
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 | Description |
---|---|---|
static int |
MAX_INDENT |
|
static int |
MIN_INDENT |
Constructor | Description |
---|---|
Emitter(Writer stream,
DumperOptions opts) |
public static final int MIN_INDENT
public static final int MAX_INDENT
public Emitter(Writer stream, DumperOptions opts)
public void emit(Event event) throws IOException
emit
in interface Emitable
IOException
Copyright © 2008–2018. All rights reserved.