@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
Package org.spongepowered.configurate.loader
Base infrastructure for configuration loaders
A configuration loader is responsible for converting between the location
of a serialized form (a file, string, or URL) and a
ConfigurationNode
. Most loader
implementations will want to extend
AbstractConfigurationLoader
in
order to gain some standard abilities. Any binary formats will probably want
to find other solutions, since the abstract loader assumes in many places
that configuration files are text files.
-
Interface Summary Interface Description CommentHandler Extracts comments from a buffered reader or collection of lines.ConfigurationFormat A service provider interface declaring a specific configuration format.ConfigurationLoader<N extends ConfigurationNode> Represents an object which can load and saveConfigurationNode
objects in a specific configuration format.LoaderOptionSource A provider forConfigurationLoader
options. -
Class Summary Class Description AbstractConfigurationFormat<N extends ScopedConfigurationNode<N>,L extends AbstractConfigurationLoader<N>,B extends AbstractConfigurationLoader.Builder<B,L>> An implementation ofConfigurationFormat
designed to work withAbstractConfigurationLoader
.AbstractConfigurationLoader<N extends ScopedConfigurationNode<N>> Base class for many stream-based configuration loaders.AbstractConfigurationLoader.Builder<T extends AbstractConfigurationLoader.Builder<T,L>,L extends AbstractConfigurationLoader<?>> An abstract builder implementation forAbstractConfigurationLoader
s.AtomicFiles A utility for creating "atomic" file writers. -
Enum Summary Enum Description CommentHandlers Defines a number of defaultCommentHandler
s.HeaderMode Modes whichConfigurationLoader
s can use to manipulate headers when loading/saving. -
Exception Summary Exception Description ParsingException Indicates an error that occurred while parsing the configuration.