Package org.yaml.snakeyaml.emitter
Class Emitter
java.lang.Object
org.yaml.snakeyaml.emitter.Emitter
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic final int
indent should not be more than 10 spacesstatic final int
indent cannot be zero spaces -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MIN_INDENT
public static final int MIN_INDENTindent cannot be zero spaces- See Also:
-
MAX_INDENT
public static final int MAX_INDENTindent should not be more than 10 spaces- See Also:
-
-
Constructor Details
-
Emitter
Create- Parameters:
stream
- - output to write toopts
- - options
-
-
Method Details
-
emit
Description copied from interface:Emitable
Push event to bytes- Specified by:
emit
in interfaceEmitable
- Parameters:
event
- - the source- Throws:
IOException
- if bytes bite
-