public interface YamlImplementation
ConfigurationSection.| Modifier and Type | Method and Description |
|---|---|
void |
configure(YamlConfigurationOptions options)
Apply the configuration options to this implementation.
|
default String |
dump(org.simpleyaml.configuration.ConfigurationSection section)
Dump section values to a Yaml string.
|
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.
|
default void |
load(String contents,
org.simpleyaml.configuration.ConfigurationSection section)
Load Yaml to a configuration section.
|
default void |
load(org.simpleyaml.utils.SupplierIO.Reader readerSupplier,
org.simpleyaml.configuration.ConfigurationSection section)
Load Yaml to a configuration section.
|
void load(Reader reader, org.simpleyaml.configuration.ConfigurationSection section) throws IOException, org.simpleyaml.exceptions.InvalidConfigurationException
reader - 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 configurationdefault void load(org.simpleyaml.utils.SupplierIO.Reader readerSupplier,
org.simpleyaml.configuration.ConfigurationSection section)
throws IOException,
org.simpleyaml.exceptions.InvalidConfigurationException
readerSupplier - 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 configurationdefault void load(String contents, org.simpleyaml.configuration.ConfigurationSection section) throws IOException, org.simpleyaml.exceptions.InvalidConfigurationException
contents - a Yaml string with 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 stringvoid dump(Writer writer, org.simpleyaml.configuration.ConfigurationSection section) throws IOException
writer - writer to dump valuessection - section with values to dumpIOExceptiondefault String dump(org.simpleyaml.configuration.ConfigurationSection section) throws IOException
section - section with values to dumpIOExceptionvoid configure(YamlConfigurationOptions options)
options - yaml optionsCopyright © 2023. All rights reserved.