| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected BaseConstructor | |
| protected DumperOptions | |
| protected LoaderOptions | |
| private String | |
| protected Representer | |
| protected final Resolver |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | Yaml(BaseConstructor
BaseConstructor to construct incoming documents constructor)Create Yaml instance. |
| public | Yaml(BaseConstructor
BaseConstructor to construct incoming documents constructor, Representer Representer to emit outgoing objects representer)Create Yaml instance. |
| public | Yaml(Representer
Representer to emit outgoing objects representer, DumperOptions DumperOptions to configure outgoing objects dumperOptions)Create Yaml instance. |
| public | Yaml(BaseConstructor
BaseConstructor to construct incoming documents. Its LoaderOptions will be
used everywhere constructor, Representer Representer to emit outgoing objects representer, DumperOptions DumperOptions to configure outgoing objects dumperOptions)Create Yaml instance. |
| public | Yaml(BaseConstructor
BaseConstructor to construct incoming documents constructor, Representer Representer to emit outgoing objects representer, DumperOptions DumperOptions to configure outgoing objects dumperOptions, LoaderOptions LoadingConfig to control load behavior loadingConfig)Create Yaml instance. |
| public | Yaml(BaseConstructor
BaseConstructor to construct incoming documents constructor, Representer Representer to emit outgoing objects representer, DumperOptions DumperOptions to configure outgoing objects dumperOptions, Resolver Resolver to detect implicit type resolver)Create Yaml instance. |
| public | Yaml(BaseConstructor
BaseConstructor to construct incoming documents constructor, Representer Representer to emit outgoing objects representer, DumperOptions DumperOptions to configure outgoing objects dumperOptions, LoaderOptions LoadingConfig to control load behavior loadingConfig, Resolver Resolver to detect implicit type resolver)Create Yaml instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addImplicitResolver(Tag
tag to assign to the node tag, Pattern regular expression to match against regexp, String a sequence of possible initial characters or null (which means any). first)Add an implicit scalar detector. |
| public void | addImplicitResolver(Tag
tag to assign to the node tag, Pattern regular expression to match against regexp, String a sequence of possible initial characters or null (which means any). first, int the max length of the value which may match the regular expression limit)Add an implicit scalar detector. |
| public void | |
| public Node | |
| public Iterable | Returns: parsed root Nodes for all the specified YAML documentsstream of YAML documents yaml)Parse all YAML documents in a stream and produce corresponding representation trees. |
| public String | |
| public void | |
| public String | |
| public void | |
| private void | |
| public String | Returns: YAML StringJava object to be serialized to YAML data, Tag the tag for the whole YAML document. The tag should be Tag.MAP for a JavaBean to
make the tag disappear (to use implicit tag !!map). If rootTag, DumperOptions.null is provided
then the standard tag with the full class name is used.flow style for the whole document. See Chapter 10. Collection Styles
http://yaml.org/spec/1.1/#id930798. If flowStylenull is provided then the flow style
from DumperOptions is used.Serialize a Java object into a YAML string. |
| public String | |
| public String | |
| private static DumperOptions | |
| public < the class of the instance to be created T> T | |
| public < the class of the instance to be created T> T | Returns: parsed objectdata to load from (BOM is respected to detect encoding and removed from the data) io)Parse the only YAML document in a stream and produce the corresponding Java object. |
| public < the class of the instance to be created T> T | |
| public Iterable | |
| public Iterable | |
| public Iterable | Returns: an Iterable over the parsed Java objects in this stream in proper sequenceYAML data to load from (BOM is respected to detect encoding and removed from the
data) yaml)Parse all YAML documents in a stream and produce corresponding Java objects. |
| public < Class is defined by the second argument T> T | |
| public < Class is defined by the second argument T> T | |
| public < Class is defined by the second argument T> T | Returns: parsed objectdata to load from (BOM is respected to detect encoding and removed from the data) input, Class<? super T> Class of the object to be created type)Parse the only YAML document in a stream and produce the corresponding Java object. |
| private Object | |
| public Iterable | |
| public Node | |
| public void | |
| public List | |
| public void | |
| public void | |
| public String |
| constructor | back to summary |
|---|---|
| protected BaseConstructor constructor | |
| dumperOptions | back to summary |
|---|---|
| protected DumperOptions dumperOptions | |
| loadingConfig | back to summary |
|---|---|
| protected LoaderOptions loadingConfig | |
| name | back to summary |
|---|---|
| private String name | |
| representer | back to summary |
|---|---|
| protected Representer representer | |
| resolver | back to summary |
|---|---|
| protected final Resolver resolver | |
| Yaml | back to summary |
|---|---|
| public Yaml() Create Yaml instance. | |
| Yaml | back to summary |
|---|---|
| public Yaml(DumperOptions dumperOptions) Create Yaml instance.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(LoaderOptions loadingConfig) Create Yaml instance.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(Representer representer) Create Yaml instance.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(BaseConstructor constructor) Create Yaml instance.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(BaseConstructor constructor, Representer representer) Create Yaml instance.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(Representer representer, DumperOptions dumperOptions) Create Yaml instance. It is safe to create a few instances and use them in different Threads.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(BaseConstructor constructor, Representer representer, DumperOptions dumperOptions) Create Yaml instance. It is safe to create a few instances and use them in different Threads.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(BaseConstructor constructor, Representer representer, DumperOptions dumperOptions, LoaderOptions loadingConfig) Create Yaml instance. It is safe to create a few instances and use them in different Threads.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(BaseConstructor constructor, Representer representer, DumperOptions dumperOptions, Resolver resolver) Create Yaml instance. It is safe to create a few instances and use them in different Threads.
| |
| Yaml | back to summary |
|---|---|
| public Yaml(BaseConstructor constructor, Representer representer, DumperOptions dumperOptions, LoaderOptions loadingConfig, Resolver resolver) Create Yaml instance. It is safe to create a few instances and use them in different Threads.
| |
| addImplicitResolver | back to summary |
|---|---|
| public void addImplicitResolver(Tag tag, Pattern regexp, String first) Add an implicit scalar detector. If an implicit scalar value matches the given regexp, the corresponding tag is assigned to the scalar. | |
| addImplicitResolver | back to summary |
|---|---|
| public void addImplicitResolver(Tag tag, Pattern regexp, String first, int limit) Add an implicit scalar detector. If an implicit scalar value matches the given regexp, the corresponding tag is assigned to the scalar. | |
| addTypeDescription | back to summary |
|---|---|
| public void addTypeDescription(TypeDescription td) | |
| compose | back to summary |
|---|---|
| public Node compose(Reader yaml) Parse the first YAML document in a stream and produce the corresponding representation tree. (This is the opposite of the represent() method)
| |
| composeAll | back to summary |
|---|---|
| public Iterable Parse all YAML documents in a stream and produce corresponding representation trees.
| |
| dump | back to summary |
|---|---|
| public String dump(Object data) Serialize a Java object into a YAML String. | |
| dump | back to summary |
|---|---|
| public void dump(Object data, Writer output) Serialize a Java object into a YAML stream. | |
| dumpAll | back to summary |
|---|---|
| public String dumpAll(Iterator<? extends Object> data) Serialize a sequence of Java objects into a YAML String. | |
| dumpAll | back to summary |
|---|---|
| public void dumpAll(Iterator<? extends Object> data, Writer output) Serialize a sequence of Java objects into a YAML stream. | |
| dumpAll | back to summary |
|---|---|
| private void dumpAll(Iterator<? extends Object> data, Writer output, Tag rootTag) | |
| dumpAs | back to summary |
|---|---|
| public String dumpAs(Object data, Tag rootTag, DumperOptions.
Serialize a Java object into a YAML string. Override the default root tag with
This method is similar to
First, if the root tag is replaced with a standard YAML tag, such as Second, if the root tag is replaced by a different custom tag, then the document appears to be a different type when loaded. For example, if an instance of MyClass is dumped with the tag !!YourClass, then it will be handled as an instance of YourClass when loaded.
| |
| dumpAsMap | back to summary |
|---|---|
| public String dumpAsMap(Object data)
Serialize a Java object into a YAML string. Override the default root tag with
This method is similar to Block Mapping is used as the collection style. See 10.2.2. Block Mappings (http://yaml.org/spec/1.1/#id934537) | |
| getName | back to summary |
|---|---|
| public String getName() Get a meaningful name. It simplifies debugging in a multi-threaded environment. If nothing is set explicitly the address of the instance is returned.
| |
| initDumperOptions | back to summary |
|---|---|
| private static DumperOptions initDumperOptions(Representer representer) | |
| load | back to summary |
|---|---|
| public <T> T load(String yaml) Parse the only YAML document in a String and produce the corresponding Java object. (Because the encoding in known BOM is not respected.)
| |
| load | back to summary |
|---|---|
| public <T> T load(InputStream io) Parse the only YAML document in a stream and produce the corresponding Java object.
| |
| load | back to summary |
|---|---|
| public <T> T load(Reader io) Parse the only YAML document in a stream and produce the corresponding Java object.
| |
| loadAll | back to summary |
|---|---|
| public Iterable Parse all YAML documents in the Reader and produce corresponding Java objects. The documents are parsed only when the iterator is invoked. | |
| loadAll | 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. | |
| loadAll | 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.
| |
| loadAs | back to summary |
|---|---|
| public <T> T loadAs(Reader io, Class<? super T> type) Parse the only YAML document in a stream and produce the corresponding Java object.
| |
| loadAs | back to summary |
|---|---|
| public <T> T loadAs(String yaml, Class<? super T> type) Parse the only YAML document in a String and produce the corresponding Java object. (Because the encoding in known BOM is not respected.)
| |
| loadAs | back to summary |
|---|---|
| public <T> T loadAs(InputStream input, Class<? super T> type) Parse the only YAML document in a stream and produce the corresponding Java object.
| |
| loadFromReader | back to summary |
|---|---|
| private Object loadFromReader(StreamReader sreader, Class<?> type) | |
| parse | back to summary |
|---|---|
| public Iterable Parse a YAML stream and produce parsing events.
| |
| represent | back to summary |
|---|---|
| public Node represent(Object data) Produce the corresponding representation tree for a given Object.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Node node, Writer output) Serialize (dump) a YAML node into a YAML stream. | |
| serialize | back to summary |
|---|---|
| public List Serialize the representation tree into Events.
| |
| setBeanAccess | back to summary |
|---|---|
| public void setBeanAccess(BeanAccess beanAccess) | |
| setName | back to summary |
|---|---|
| public void setName(String name) Set a meaningful name to be shown in toString()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| public |
| iterator | back to summary |
|---|---|
| private final Iterator<Event> iterator | |
| EventIterable | back to summary |
|---|---|
| public EventIterable(Iterator<Event> iterator) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| Access | Constructor and Description |
|---|---|
| public |
| iterator | back to summary |
|---|---|
| private final Iterator<Node> iterator | |
| NodeIterable | back to summary |
|---|---|
| public NodeIterable(Iterator<Node> iterator) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | emit(Event
- the source event)Implements org. |
| public List |
| events | back to summary |
|---|---|
| private final List<Event> events | |
| SilentEmitter | back to summary |
|---|---|
| private SilentEmitter() | |
| emit | back to summary |
|---|---|
| public void emit(Event event) throws IOException Implements org. Doc from org. Serialise event to bytes
| |
| getEvents | back to summary |
|---|---|
| public List | |
| 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 | |