public class YamlConfiguration extends FileConfiguration
Configuration
which saves all files in Yaml. Note that this implementation is not synchronized.Modifier and Type | Field and Description |
---|---|
protected static String |
BLANK_CONFIG |
protected static String |
COMMENT_PREFIX |
defaults, options
map
Constructor and Description |
---|
YamlConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildHeader() |
protected void |
convertMapsToSections(Map<?,?> input,
ConfigurationSection section) |
static YamlConfiguration |
loadConfiguration(File file) |
static YamlConfiguration |
loadConfiguration(InputStream stream) |
void |
loadFromString(String contents) |
YamlConfigurationOptions |
options() |
protected String |
parseHeader(String input) |
String |
saveToString() |
load, load, load, save, save
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getRoot, getShortList, getString, getString, getStringList, getValues, isBoolean, isConfigurationSection, isDouble, isInt, isList, isLong, isPrimitiveWrapper, isSet, isString, mapChildrenKeys, mapChildrenValues, set, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getRoot, getShortList, getString, getString, getStringList, getValues, isBoolean, isConfigurationSection, isDouble, isInt, isList, isLong, isSet, isString, set
protected static final String COMMENT_PREFIX
protected static final String BLANK_CONFIG
public String saveToString()
saveToString
in class FileConfiguration
public void loadFromString(String contents) throws InvalidConfigurationException
loadFromString
in class FileConfiguration
InvalidConfigurationException
protected void convertMapsToSections(Map<?,?> input, ConfigurationSection section)
protected String buildHeader()
buildHeader
in class FileConfiguration
public YamlConfigurationOptions options()
options
in interface Configuration
options
in class FileConfiguration
public static YamlConfiguration loadConfiguration(File file)
public static YamlConfiguration loadConfiguration(InputStream stream)
Copyright © 2019. All rights reserved.