Class YamlConfigurationLoader
java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader<CommentedConfigurationNode>
org.spongepowered.configurate.yaml.YamlConfigurationLoader
- All Implemented Interfaces:
ConfigurationNodeFactory<CommentedConfigurationNode>
,ConfigurationLoader<CommentedConfigurationNode>
public final class YamlConfigurationLoader
extends AbstractConfigurationLoader<CommentedConfigurationNode>
A loader for YAML-formatted configurations, using the SnakeYAML library for
parsing and generation.
- Since:
- 4.0.0
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader
CONFIGURATE_LINE_PATTERN, CONFIGURATE_LINE_SEPARATOR, sink, source, SYSTEM_LINE_SEPARATOR
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a newYamlConfigurationLoader
builder.createNode
(ConfigurationOptions options) protected void
loadInternal
(CommentedConfigurationNode node, BufferedReader reader) protected void
saveInternal
(ConfigurationNode node, Writer writer) Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader
canLoad, canSave, checkCanWrite, defaultCommentHandler, defaultOptions, load, loadToReference, save, writeHeaderInternal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.spongepowered.configurate.loader.ConfigurationLoader
load
Methods inherited from interface org.spongepowered.configurate.ConfigurationNodeFactory
createNode, createNode, createNode, toListCollector, toListCollector, toMapCollector, toMapCollector
-
Method Details
-
builder
Creates a newYamlConfigurationLoader
builder.- Returns:
- a new builder
- Since:
- 4.0.0
-
loadInternal
- Specified by:
loadInternal
in classAbstractConfigurationLoader<CommentedConfigurationNode>
-
saveInternal
- Specified by:
saveInternal
in classAbstractConfigurationLoader<CommentedConfigurationNode>
-
createNode
-