public interface YamlImplementation
ConfigurationSection.| Modifier and Type | Method and Description |
|---|---|
void |
configure(YamlConfigurationOptions options)
Apply the configuration options to this implementation.
|
default String |
dump(ConfigurationSection section)
Dump section values to a Yaml string.
|
void |
dump(Writer writer,
ConfigurationSection section)
Dump section values to Yaml.
|
void |
load(Reader reader,
ConfigurationSection section)
Load Yaml to a configuration section.
|
default void |
load(String contents,
ConfigurationSection section)
Load Yaml to a configuration section.
|
default void |
load(SupplierIO.Reader readerSupplier,
ConfigurationSection section)
Load Yaml to a configuration section.
|
void load(Reader reader, ConfigurationSection section) throws IOException, InvalidConfigurationException
reader - a reader of Yaml contents to loadsection - the configuration to fill with the contentsIOException - if cannot read contents.InvalidConfigurationException - if contents is not a valid Yaml configurationdefault void load(SupplierIO.Reader readerSupplier, ConfigurationSection section) throws IOException, InvalidConfigurationException
readerSupplier - a function providing a reader of Yaml contents to loadsection - the configuration to fill with the contentsIOException - if cannot read contents.InvalidConfigurationException - if contents is not a valid Yaml configurationdefault void load(String contents, ConfigurationSection section) throws IOException, InvalidConfigurationException
contents - a Yaml string with contents to loadsection - the configuration to fill with the contentsIOException - if cannot read contents.InvalidConfigurationException - if contents is not a valid Yaml stringvoid dump(Writer writer, ConfigurationSection section) throws IOException
writer - writer to dump valuessection - section with values to dumpIOExceptiondefault String dump(ConfigurationSection section) throws IOException
section - section with values to dumpIOExceptionvoid configure(YamlConfigurationOptions options)
options - yaml optionsCopyright © 2023. All rights reserved.