Additional top-level class in compilation unit: StreamToStringWriter.
| Modifier and Type | Field and Description |
|---|---|
| protected BaseRepresenter | representer
The component to translate Java instances to Nodes |
| protected DumpSettings | settings
Configuration options |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Dump(DumpSettings
- configuration settings, BaseRepresenter - custom representer representer)Create instance |
| Modifier and Type | Method and Description |
|---|---|
| public void | dump(Object
- instance to serialize yaml, StreamDataWriter - destination I/O writer streamDataWriter)Dump a single instance into a YAML document |
| public void | dumpAll(Iterator<? extends Object>
- instances to serialize instancesIterator, StreamDataWriter - destination I/O writer streamDataWriter)Dump all the instances from the iterator into a stream with every instance in a separate YAML document |
| public String | Returns: String representation of the YAML stream- instances to serialize instancesIterator)Dump all the instances from the iterator into a stream with every instance in a separate YAML document |
| public void | dumpNode(Node
- YAML node to be serialized to YAML document node, StreamDataWriter - stream to write to streamDataWriter)Dump the provided Node into a YAML stream. |
| public String | Returns: String representation of the YAML stream- instance to serialize yaml)Dump all the instances from the iterator into a stream with every instance in a separate YAML document |
| representer | back to summary |
|---|---|
| protected BaseRepresenter representer The component to translate Java instances to Nodes | |
| settings | back to summary |
|---|---|
| protected DumpSettings settings Configuration options | |
| Dump | back to summary |
|---|---|
| public Dump(DumpSettings settings) Create instance
| |
| Dump | back to summary |
|---|---|
| public Dump(DumpSettings settings, BaseRepresenter representer) Create instance
| |
| dump | back to summary |
|---|---|
| public void dump(Object yaml, StreamDataWriter streamDataWriter) Dump a single instance into a YAML document
| |
| dumpAll | back to summary |
|---|---|
| public 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
| |
| dumpAllToString | back to summary |
|---|---|
| public String dumpAllToString(Iterator<? extends Object> instancesIterator) Dump all the instances from the iterator into a stream with every instance in a separate YAML document | |
| dumpNode | back to summary |
|---|---|
| public void dumpNode(Node node, StreamDataWriter streamDataWriter) Dump the provided Node into a YAML stream.
| |
| dumpToString | back to summary |
|---|---|
| public String dumpToString(Object yaml) Dump all the instances from the iterator into a stream with every instance in a separate YAML document | |