public class SimpleYamlImplementation extends SnakeYamlImplementation
dumperOptions, loaderOptions, resolver, yaml, yamlConstructor, yamlRepresenteroptions, yamlCommentMapper| Constructor and Description |
|---|
SimpleYamlImplementation() |
SimpleYamlImplementation(org.yaml.snakeyaml.LoaderOptions loaderOptions,
org.yaml.snakeyaml.DumperOptions dumperOptions) |
SimpleYamlImplementation(SnakeYamlConstructor yamlConstructor,
SnakeYamlRepresenter yamlRepresenter) |
SimpleYamlImplementation(SnakeYamlConstructor yamlConstructor,
SnakeYamlRepresenter yamlRepresenter,
org.yaml.snakeyaml.resolver.Resolver resolver) |
SimpleYamlImplementation(SnakeYamlRepresenter yamlRepresenter) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(YamlConfigurationOptions options)
Apply the configuration options to this implementation.
|
void |
dump(Writer writer,
org.simpleyaml.configuration.ConfigurationSection section)
Dump section values to Yaml.
|
void |
load(Reader reader,
org.simpleyaml.configuration.ConfigurationSection section)
Load Yaml to a configuration section.
|
void |
load(org.simpleyaml.utils.SupplierIO.Reader readerSupplier,
org.simpleyaml.configuration.ConfigurationSection section)
Load Yaml to a configuration section.
|
YamlCommentMapper |
parseComments(Reader reader)
Parse comments from a reader.
|
void |
setComment(String path,
String comment,
org.simpleyaml.configuration.comments.CommentType type) |
dumpYaml, getConstructor, getDumperOptions, getLoaderOptions, getName, getRepresenter, getResolver, getYaml, hasContent, resolveAnchor, sectionToMapping, setCommentsMapping, setCommentsSequence, trackMapping, trackSequencegetComment, getCommentMapperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdump, loadpublic SimpleYamlImplementation()
public SimpleYamlImplementation(org.yaml.snakeyaml.LoaderOptions loaderOptions,
org.yaml.snakeyaml.DumperOptions dumperOptions)
public SimpleYamlImplementation(SnakeYamlRepresenter yamlRepresenter)
public SimpleYamlImplementation(SnakeYamlConstructor yamlConstructor, SnakeYamlRepresenter yamlRepresenter)
public SimpleYamlImplementation(SnakeYamlConstructor yamlConstructor, SnakeYamlRepresenter yamlRepresenter, org.yaml.snakeyaml.resolver.Resolver resolver)
public void setComment(String path, String comment, org.simpleyaml.configuration.comments.CommentType type)
setComment in interface org.simpleyaml.configuration.comments.CommentablesetComment in class SnakeYamlImplementationpublic void load(org.simpleyaml.utils.SupplierIO.Reader readerSupplier,
org.simpleyaml.configuration.ConfigurationSection section)
throws IOException,
org.simpleyaml.exceptions.InvalidConfigurationException
YamlImplementationreaderSupplier - a function providing a reader of Yaml contents to loadsection - the configuration to fill with the contentsIOException - if cannot read contents.org.simpleyaml.exceptions.InvalidConfigurationException - if contents is not a valid Yaml configurationpublic void load(Reader reader, org.simpleyaml.configuration.ConfigurationSection section) throws IOException, org.simpleyaml.exceptions.InvalidConfigurationException
YamlImplementationload in interface YamlImplementationload in class SnakeYamlImplementationreader - a reader of Yaml contents to loadsection - the configuration to fill with the contentsIOException - if cannot read contents.org.simpleyaml.exceptions.InvalidConfigurationException - if contents is not a valid Yaml configurationpublic void dump(Writer writer, org.simpleyaml.configuration.ConfigurationSection section) throws IOException
YamlImplementationdump in interface YamlImplementationdump in class SnakeYamlImplementationwriter - writer to dump valuessection - section with values to dumpIOExceptionpublic YamlCommentMapper parseComments(Reader reader) throws org.simpleyaml.exceptions.InvalidConfigurationException
reader - Reader of a Configuration to parse.org.simpleyaml.exceptions.InvalidConfigurationException - if it hasn't been possible to read the contentspublic void configure(YamlConfigurationOptions options)
YamlImplementationconfigure in interface YamlImplementationconfigure in class SnakeYamlImplementationoptions - yaml optionsCopyright © 2023. All rights reserved.