public class GsonConfigurationLoader extends AbstractConfigurationLoader<ConfigurationNode>
Modifier and Type | Class and Description |
---|---|
static class |
GsonConfigurationLoader.Builder |
LINE_SEPARATOR, LINE_SPLITTER, source, UTF8_CHARSET
Modifier | Constructor and Description |
---|---|
protected |
GsonConfigurationLoader(CharSource source,
CharSink sink,
int indent,
boolean lenient,
boolean preservesHeader) |
Modifier and Type | Method and Description |
---|---|
static GsonConfigurationLoader.Builder |
builder() |
ConfigurationNode |
createEmptyNode(ConfigurationOptions options)
Return an empty node of the most appropriate type for this loader
|
protected void |
loadInternal(ConfigurationNode node,
BufferedReader reader) |
void |
saveInternal(ConfigurationNode node,
Writer writer) |
canLoad, canSave, getDefaultCommentHandler, load, load, save
protected GsonConfigurationLoader(CharSource source, CharSink sink, int indent, boolean lenient, boolean preservesHeader)
public static GsonConfigurationLoader.Builder builder()
protected void loadInternal(ConfigurationNode node, BufferedReader reader) throws IOException
loadInternal
in class AbstractConfigurationLoader<ConfigurationNode>
IOException
public void saveInternal(ConfigurationNode node, Writer writer) throws IOException
saveInternal
in class AbstractConfigurationLoader<ConfigurationNode>
IOException
public ConfigurationNode createEmptyNode(ConfigurationOptions options)
ConfigurationLoader
options
- The options to use with this node. Must not be null (take a look at ConfigurationOptions.defaults()
)Copyright © 2014–2015 Leaping Ninja. All rights reserved.