public class Compose extends Object
| Constructor and Description |
|---|
Compose(LoadSettings settings)
Create instance with provided
LoadSettings |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Node> |
composeAllFromInputStream(InputStream yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
Iterable<Node> |
composeAllFromReader(Reader yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
Iterable<Node> |
composeAllFromString(String yaml)
Parse all YAML documents in a stream and produce corresponding representation trees.
|
Optional<Node> |
composeInputStream(InputStream yaml)
Parse a YAML stream and produce
Node |
Optional<Node> |
composeReader(Reader yaml)
Parse a YAML stream and produce
Node |
Optional<Node> |
composeString(String yaml)
Parse a YAML stream and produce
Node |
public Compose(LoadSettings settings)
LoadSettingssettings - - configurationpublic Optional<Node> composeReader(Reader yaml)
Nodeyaml - - YAML document(s). Since the encoding is already known the BOM must not be present
(it will be parsed as content)Node if availablepublic Optional<Node> composeInputStream(InputStream yaml)
Nodeyaml - - YAML document(s). Default encoding is UTF-8. The BOM must be present if the
encoding is UTF-16 or UTF-32Node if availablepublic Optional<Node> composeString(String yaml)
Nodeyaml - - YAML document(s).Node if availablepublic Iterable<Node> composeAllFromReader(Reader yaml)
yaml - stream of YAML documentspublic Iterable<Node> composeAllFromInputStream(InputStream yaml)
yaml - - YAML document(s). Default encoding is UTF-8. The BOM must be present if the
encoding is UTF-16 or UTF-32public Iterable<Node> composeAllFromString(String yaml)
yaml - - YAML document(s).Copyright © 2018–2022. All rights reserved.