Class HoconConfigurationLoader
java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader<CommentedConfigurationNode>
org.spongepowered.configurate.hocon.HoconConfigurationLoader
- All Implemented Interfaces:
ConfigurationNodeFactory<CommentedConfigurationNode>,ConfigurationLoader<CommentedConfigurationNode>
public final class HoconConfigurationLoader
extends AbstractConfigurationLoader<CommentedConfigurationNode>
A loader for HOCON (Hodor)-formatted configurations, using the
lightbend config 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 newHoconConfigurationLoaderbuilder.protected voidcreateNode(ConfigurationOptions options) protected voidloadInternal(CommentedConfigurationNode node, BufferedReader reader) protected voidsaveInternal(ConfigurationNode node, Writer writer) Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader
canLoad, canSave, 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 newHoconConfigurationLoaderbuilder.- Returns:
- a new builder
- Since:
- 4.0.0
-
checkCanWrite
- Overrides:
checkCanWritein classAbstractConfigurationLoader<CommentedConfigurationNode>- Throws:
ConfigurateException
-
loadInternal
protected void loadInternal(CommentedConfigurationNode node, BufferedReader reader) throws ParsingException - Specified by:
loadInternalin classAbstractConfigurationLoader<CommentedConfigurationNode>- Throws:
ParsingException
-
saveInternal
- Specified by:
saveInternalin classAbstractConfigurationLoader<CommentedConfigurationNode>- Throws:
ConfigurateException
-
createNode
-