Package org.snakeyaml.engine.v2.emitter
Class Emitter
- java.lang.Object
-
- org.snakeyaml.engine.v2.emitter.Emitter
-
- All Implemented Interfaces:
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
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_INDENTindent should not be more than 10 spacesstatic intMIN_INDENTindent cannot be zero spaces
-
Constructor Summary
Constructors Constructor Description Emitter(DumpSettings opts, StreamDataWriter stream)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemit(org.snakeyaml.engine.v2.events.Event event)Serialise event to bytes
-
-
-
Field Detail
-
MIN_INDENT
public static final int MIN_INDENT
indent cannot be zero spaces- See Also:
- Constant Field Values
-
MAX_INDENT
public static final int MAX_INDENT
indent should not be more than 10 spaces- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Emitter
public Emitter(DumpSettings opts, StreamDataWriter stream)
Create- Parameters:
opts- - configuration optionsstream- - output stream
-
-