Modifier and Type | Method and Description |
---|---|
static YamlNode |
load(InputStream inputStream)
Loads a YAML document from an
InputStream and builds a
YamlNode tree. |
static YamlNode |
load(InputStream inputStream,
String rootName)
Loads a YAML document from an
InputStream and builds a
YamlNode tree that is under the provided top-level
rootName key. |
static YamlNode |
load(Reader reader)
|
static YamlNode |
load(Reader reader,
String rootName)
|
static YamlNode |
load(String yaml)
|
static YamlNode |
load(String yaml,
String rootName)
|
public static YamlNode load(InputStream inputStream, String rootName)
InputStream
and builds a
YamlNode
tree that is under the provided top-level
rootName
key. This loading mode requires the topmost level
of the YAML document to be a mapping.inputStream
- The input stream to load the YAML fromrootName
- The name of the root's keypublic static YamlNode load(InputStream inputStream)
InputStream
and builds a
YamlNode
tree.inputStream
- The input stream to load the YAML frompublic static YamlNode load(Reader reader, String rootName)
Reader
and builds a
YamlNode
tree that is under the provided top-level
rootName
key. This loading mode requires the topmost level
of the YAML document to be a mapping.reader
- The reader to load the YAML fromrootName
- The name of the root's keypublic static YamlNode load(Reader reader)
reader
- The reader to load the YAML frompublic static YamlNode load(String yaml, String rootName)
String
and builds a
YamlNode
tree that is under the provided top-level
rootName
key. This loading mode requires the topmost level
of the YAML document to be a mapping.yaml
- The string to load the YAML fromrootName
- The name of the root's keyCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.