public class Load extends Object
| Constructor and Description |
|---|
Load(LoadSettings settings)
Create instance to parse the incoming YAML data and create Java instances
|
Load(LoadSettings settings,
BaseConstructor constructor)
Create instance to parse the incoming YAML data and create Java instances
|
| Modifier and Type | Method and Description |
|---|---|
protected Composer |
createComposer(InputStream yamlStream) |
protected Composer |
createComposer(Reader yamlReader) |
protected Composer |
createComposer(String yaml) |
Iterable<Object> |
loadAllFromInputStream(InputStream yamlStream)
Parse all YAML documents in a stream and produce corresponding Java
objects.
|
Iterable<Object> |
loadAllFromReader(Reader yamlReader)
Parse all YAML documents in a String and produce corresponding Java
objects.
|
Iterable<Object> |
loadAllFromString(String yaml)
Parse all YAML documents in a String and produce corresponding Java
objects.
|
Object |
loadFromInputStream(InputStream yamlStream)
Parse the only YAML document in a stream and produce the corresponding
Java object.
|
Object |
loadFromReader(Reader yamlReader)
Parse a YAML document and create a Java instance
|
Object |
loadFromString(String yaml)
Parse a YAML document and create a Java instance
|
protected Object |
loadOne(Composer composer) |
public Load(LoadSettings settings)
settings - - configurationpublic Load(LoadSettings settings, BaseConstructor constructor)
settings - - configurationconstructor - - custom YAML constructorprotected Composer createComposer(InputStream yamlStream)
public Object loadFromInputStream(InputStream yamlStream)
yamlStream - - data to load from (BOM is respected to detect encoding and removed from the data)public Object loadFromReader(Reader yamlReader)
yamlReader - - data to load from (BOM must not be present)public Object loadFromString(String yaml)
yaml - - YAML data to load from (BOM must not be present)YamlEngineException - if the YAML is not validpublic Iterable<Object> loadAllFromInputStream(InputStream yamlStream)
yamlStream - - YAML data to load from (BOM is respected to detect encoding and removed from the data)public Iterable<Object> loadAllFromReader(Reader yamlReader)
yamlReader - - YAML data to load from (BOM must not be present)public Iterable<Object> loadAllFromString(String yaml)
yaml - - YAML data to load from (BOM must not be present)Copyright © 2018–2019. All rights reserved.