-
-
Notifications
You must be signed in to change notification settings - Fork 70
Loaders
zml edited this page Mar 22, 2015
·
5 revisions
Loaders handle serializing a ConfigurationNode structure to or from a target, providing load and save operations for any node.
Loaders are created using builders, which allow setting options on a then-immutable configuration loader. Builders accept CharSources and CharSinks (from Guava) as the objects to load and save data with.
Format: YAML
Artifact ID: configurate-yaml
- Indent: How many spaces wide an indentation level should be
- Flow style: Block, Flow, or have the yaml library pick. These flow styles are defined in the YAML spec
Format: HOCON
Artifact ID: configurate-hocon
The HoconConfigurationLoader's builder exposes ConfigParseOptions and ConfigRenderOptions
Format: JSON
Artifact ID: configurate-json
- The JsonFactory is exposed in the builder to set features on
- prettyPrint is configurable
Format: JSON
Artifact ID: configurate-gson
- indent: number of spaces wide an indent should be
- lenient: whether the parser should handle processes leniently