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 SummaryNested Classes
- 
Field SummaryFields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoaderCONFIGURATE_LINE_PATTERN, CONFIGURATE_LINE_SEPARATOR, sink, source, SYSTEM_LINE_SEPARATOR
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Creates a newYamlConfigurationLoaderbuilder.createNode(ConfigurationOptions options) Create an empty node with the provided options.protected voidloadInternal(CommentedConfigurationNode node, BufferedReader reader) Using a created node, attempt to read a configuration file.protected voidsaveInternal(ConfigurationNode node, Writer writer) Perform a save of the node to the provided writer.Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoadercanLoad, canSave, checkCanWrite, defaultCommentHandler, defaultOptions, load, loadToReference, save, writeHeaderInternalMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spongepowered.configurate.loader.ConfigurationLoaderloadMethods inherited from interface org.spongepowered.configurate.ConfigurationNodeFactorycreateNode, createNode, createNode, toListCollector, toListCollector, toMapCollector, toMapCollector
- 
Method Details- 
builderCreates a newYamlConfigurationLoaderbuilder.- Returns:
- a new builder
- Since:
- 4.0.0
 
- 
loadInternalDescription copied from class:AbstractConfigurationLoaderUsing a created node, attempt to read a configuration file.The header will already have been read if applicable. - Specified by:
- loadInternalin class- AbstractConfigurationLoader<CommentedConfigurationNode>
- Parameters:
- node- node to load into
- reader- reader to load from
 
- 
saveInternalDescription copied from class:AbstractConfigurationLoaderPerform a save of the node to the provided writer.- Specified by:
- saveInternalin class- AbstractConfigurationLoader<CommentedConfigurationNode>
- Parameters:
- node- node to save
- writer- writer to output to
 
- 
createNodeDescription copied from interface:ConfigurationNodeFactoryCreate an empty node with the provided options.Node options may be overridden if the factory enforces specific requirements on options. - Parameters:
- options- node options
- Returns:
- newly created empty node
 
 
-