| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BaseConstructor | |
| private final LoadSettings |
| Access | Constructor and Description |
|---|---|
| public | Load(LoadSettings
- configuration settings)Create instance to parse the incoming YAML data and create Java instances |
| public | Load(LoadSettings
- configuration settings, BaseConstructor - custom YAML constructor constructor)Create instance to parse the incoming YAML data and create Java instances |
| Modifier and Type | Method and Description |
|---|---|
| private Composer | |
| protected Composer | |
| protected Composer | |
| protected Composer | |
| private Iterable | |
| public Iterable | Returns: an Iterable over the parsed Java objects in this stream in proper sequence- YAML data to load from (BOM is respected to detect encoding and removed
from the data) yamlStream)Parse all YAML documents in a stream and produce corresponding Java objects. |
| public Iterable | Returns: an Iterable over the parsed Java objects in this stream in proper sequence- YAML data to load from (BOM must not be present) yamlReader)Parse all YAML documents in a String and produce corresponding Java objects. |
| public Iterable | Returns: an Iterable over the parsed Java objects in this stream in proper sequence- YAML data to load from (BOM must not be present) yaml)Parse all YAML documents in a String and produce corresponding Java objects. |
| public Object | Returns: parsed Java instance- data to load from (BOM is respected to detect encoding and removed from the
data) yamlStream)Parse the only YAML document in a stream and produce the corresponding Java object. |
| public Object | Returns: parsed Java instance- data to load from (BOM must not be present) yamlReader)Parse a YAML document and create a Java instance |
| public Object | Returns: parsed Java instance- YAML data to load from (BOM must not be present) yaml)Parse a YAML document and create a Java instance |
| protected Object |
| constructor | back to summary |
|---|---|
| private final BaseConstructor constructor | |
| settings | back to summary |
|---|---|
| private final LoadSettings settings | |
| Load | back to summary |
|---|---|
| public Load(LoadSettings settings) Create instance to parse the incoming YAML data and create Java instances
| |
| Load | back to summary |
|---|---|
| public Load(LoadSettings settings, BaseConstructor constructor) Create instance to parse the incoming YAML data and create Java instances
| |
| createComposer | back to summary |
|---|---|
| private Composer createComposer(StreamReader streamReader) Create Composer
| |
| createComposer | back to summary |
|---|---|
| protected Composer createComposer(InputStream yamlStream) Create Composer
| |
| createComposer | back to summary |
|---|---|
| protected Composer createComposer(String yaml) Create Composer | |
| createComposer | back to summary |
|---|---|
| protected Composer createComposer(Reader yamlReader) Create Composer | |
| loadAll | back to summary |
|---|---|
| private Iterable | |
| loadAllFromInputStream | back to summary |
|---|---|
| public Iterable Parse all YAML documents in a stream and produce corresponding Java objects. The documents are parsed only when the iterator is invoked.
| |
| loadAllFromReader | back to summary |
|---|---|
| public Iterable Parse all YAML documents in a String and produce corresponding Java objects. The documents are parsed only when the iterator is invoked. | |
| loadAllFromString | back to summary |
|---|---|
| public Iterable Parse all YAML documents in a String and produce corresponding Java objects. (Because the encoding in known BOM is not respected.) The documents are parsed only when the iterator is invoked. | |
| loadFromInputStream | back to summary |
|---|---|
| public Object loadFromInputStream(InputStream yamlStream) Parse the only YAML document in a stream and produce the corresponding Java object.
| |
| loadFromReader | back to summary |
|---|---|
| public Object loadFromReader(Reader yamlReader) Parse a YAML document and create a Java instance | |
| loadFromString | back to summary |
|---|---|
| public Object loadFromString(String yaml) Parse a YAML document and create a Java instance
| |
| loadOne | back to summary |
|---|---|
| protected Object loadOne(Composer composer) Load with provided Composer | |
| Access | Constructor and Description |
|---|---|
| public |
| iterator | back to summary |
|---|---|
| private final Iterator<Object> iterator | |
| YamlIterable | back to summary |
|---|---|
| public YamlIterable(Iterator<Object> iterator) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Composer | |
| private boolean | |
| private final BaseConstructor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Object | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| composer | back to summary |
|---|---|
| private final Composer composer | |
| composerInitiated | back to summary |
|---|---|
| private boolean composerInitiated | |
| constructor | back to summary |
|---|---|
| private final BaseConstructor constructor | |
| YamlIterator | back to summary |
|---|---|
| public YamlIterator(Composer composer, BaseConstructor constructor) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Object next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |