Package me.lucko.configurate.toml
Class TOMLConfigurationLoader
java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
me.lucko.configurate.toml.TOMLConfigurationLoader
- All Implemented Interfaces:
org.spongepowered.configurate.ConfigurationNodeFactory<org.spongepowered.configurate.BasicConfigurationNode>,org.spongepowered.configurate.loader.ConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
public class TOMLConfigurationLoader
extends org.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>
A loader for the TOML configurations, using the toml4j library for parsing and generation.
-
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 TypeMethodDescriptionstatic @NonNull TOMLConfigurationLoader.Builderbuilder()Creates a newTOMLConfigurationLoaderbuilder.org.spongepowered.configurate.BasicConfigurationNodecreateNode(org.spongepowered.configurate.ConfigurationOptions options)protected voidloadInternal(org.spongepowered.configurate.BasicConfigurationNode node, BufferedReader reader)protected voidsaveInternal(org.spongepowered.configurate.ConfigurationNode node, Writer writer)Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader
canLoad, canSave, checkCanWrite, defaultCommentHandler, defaultOptions, load, loadToReference, save, writeHeaderInternalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spongepowered.configurate.loader.ConfigurationLoader
loadMethods inherited from interface org.spongepowered.configurate.ConfigurationNodeFactory
createNode, createNode, createNode, toListCollector, toListCollector, toMapCollector, toMapCollector
-
Method Details
-
builder
Creates a newTOMLConfigurationLoaderbuilder.- Returns:
- A new builder
-
loadInternal
protected void loadInternal(org.spongepowered.configurate.BasicConfigurationNode node, BufferedReader reader) throws org.spongepowered.configurate.loader.ParsingException- Specified by:
loadInternalin classorg.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>- Throws:
org.spongepowered.configurate.loader.ParsingException
-
saveInternal
protected void saveInternal(org.spongepowered.configurate.ConfigurationNode node, Writer writer) throws org.spongepowered.configurate.ConfigurateException- Specified by:
saveInternalin classorg.spongepowered.configurate.loader.AbstractConfigurationLoader<org.spongepowered.configurate.BasicConfigurationNode>- Throws:
org.spongepowered.configurate.ConfigurateException
-
createNode
public org.spongepowered.configurate.BasicConfigurationNode createNode(org.spongepowered.configurate.ConfigurationOptions options)
-