Top Description Fields Constructors Methods
org.snakeyaml.engine.v2.api.lowlevel

public Class Serialize

Additional top-level class in compilation unit: EmitableEvents.

extends Object
Class Inheritance
Imports
java.util.ArrayList, .Collections, .List, .Objects, org.snakeyaml.engine.v2.api.DumpSettings, org.snakeyaml.engine.v2.emitter.Emitable, org.snakeyaml.engine.v2.events.Event, org.snakeyaml.engine.v2.nodes.Node, org.snakeyaml.engine.v2.serializer.Serializer

Implementation of the step which translates Nodes to Events

Field Summary

Modifier and TypeField and Description
private final DumpSettings

Constructor Summary

AccessConstructor and Description
public
Serialize(DumpSettings
- configuration
settings
)

Create instance with provided DumpSettings

Method Summary

Modifier and TypeMethod and Description
public List<Event>

Returns:

serialized events
serializeAll
(List<Node>
- Nodes to serialize
nodes
)

Serialize Nodes and produce events.

public List<Event>

Returns:

serialized events
serializeOne
(Node
- Node to serialize
node
)

Serialize a Node and produce events.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

settingsback to summary
private final DumpSettings settings

Constructor Detail

Serializeback to summary
public Serialize(DumpSettings settings)

Create instance with provided DumpSettings

Parameters
settings:DumpSettings

- configuration

Method Detail

serializeAllback to summary
public List<Event> serializeAll(List<Node> nodes)

Serialize Nodes and produce events.

Parameters
nodes:List<Node>

- Nodes to serialize

Returns:List<Event>

serialized events

See Also
Processing Overview
serializeOneback to summary
public List<Event> serializeOne(Node node)

Serialize a Node and produce events.

Parameters
node:Node

- Node to serialize

Returns:List<Event>

serialized events

See Also
Processing Overview