public class Dump extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BaseRepresenter |
representer |
protected DumpSettings |
settings |
| Constructor and Description |
|---|
Dump(DumpSettings settings)
Create instance
|
Dump(DumpSettings settings,
BaseRepresenter representer)
Create instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump(Object yaml,
StreamDataWriter streamDataWriter)
Dump a single instance into a YAML document
|
void |
dumpAll(Iterator<? extends Object> instancesIterator,
StreamDataWriter streamDataWriter)
Dump all the instances from the iterator into a stream with every instance in a separate YAML
document
|
String |
dumpAllToString(Iterator<? extends Object> instancesIterator)
Dump all the instances from the iterator into a stream with every instance in a separate YAML
document
|
void |
dumpNode(Node node,
StreamDataWriter streamDataWriter)
Dump the provided Node into a YAML stream.
|
String |
dumpToString(Object yaml)
Dump all the instances from the iterator into a stream with every instance in a separate YAML
document
|
protected DumpSettings settings
protected BaseRepresenter representer
public Dump(DumpSettings settings)
settings - - configurationpublic Dump(DumpSettings settings, BaseRepresenter representer)
settings - - configurationrepresenter - - custom representerpublic void dumpAll(Iterator<? extends Object> instancesIterator, StreamDataWriter streamDataWriter)
instancesIterator - - instances to serializestreamDataWriter - - destination I/O writerpublic void dump(Object yaml, StreamDataWriter streamDataWriter)
yaml - - instance to serializestreamDataWriter - - destination I/O writerpublic String dumpAllToString(Iterator<? extends Object> instancesIterator)
instancesIterator - - instances to serializepublic String dumpToString(Object yaml)
yaml - - instance to serializepublic void dumpNode(Node node, StreamDataWriter streamDataWriter)
node - - YAML node to be serialized to YAML documentstreamDataWriter - - stream to write toCopyright © 2018–2022. All rights reserved.