Class Serialize
- java.lang.Object
-
- org.snakeyaml.engine.v2.api.lowlevel.Serialize
-
public class Serialize extends java.lang.Object
Implementation of the step which translates Nodes to Events
-
-
Field Summary
Fields Modifier and Type Field Description private DumpSettings
settings
-
Constructor Summary
Constructors Constructor Description Serialize(DumpSettings settings)
Create instance with providedDumpSettings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Event>
serializeAll(java.util.List<Node> nodes)
SerializeNode
s and produce events.java.util.List<Event>
serializeOne(Node node)
Serialize aNode
and produce events.
-
-
-
Field Detail
-
settings
private final DumpSettings settings
-
-
Constructor Detail
-
Serialize
public Serialize(DumpSettings settings)
Create instance with providedDumpSettings
- Parameters:
settings
- - configuration
-
-
Method Detail
-
serializeOne
public java.util.List<Event> serializeOne(Node node)
Serialize aNode
and produce events.- Parameters:
node
- -Node
to serialize- Returns:
- serialized events
- See Also:
- Processing Overview
-
serializeAll
public java.util.List<Event> serializeAll(java.util.List<Node> nodes)
SerializeNode
s and produce events.- Parameters:
nodes
- -Node
s to serialize- Returns:
- serialized events
- See Also:
- Processing Overview
-
-