public class CopyYamlConfiguration
extends org.bukkit.configuration.file.YamlConfiguration
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 |
Constructor and Description |
---|
CopyYamlConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
convertMapsToSections(Map<?,?> input,
org.bukkit.configuration.ConfigurationSection section) |
static org.bukkit.configuration.file.YamlConfiguration |
loadConfiguration(File file)
Creates a new
YamlConfiguration , loading from the given file. |
static org.bukkit.configuration.file.YamlConfiguration |
loadConfiguration(Reader reader)
Creates a new
YamlConfiguration , loading from the given reader. |
void |
loadFromString(String contents) |
protected String |
parseHeader(String input) |
String |
saveToString() |
load, load, load, save, save
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
contains, contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isPrimitiveWrapper, isSet, isString, isVector, mapChildrenKeys, mapChildrenValues, set, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getColor, getColor, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getItemStack, getItemStack, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getOfflinePlayer, getOfflinePlayer, getRoot, getSerializable, getSerializable, getShortList, getString, getString, getStringList, getValues, getVector, getVector, isBoolean, isColor, isConfigurationSection, isDouble, isInt, isItemStack, isList, isLong, isOfflinePlayer, isSet, isString, isVector, set
protected static final String COMMENT_PREFIX
protected static final String BLANK_CONFIG
public String saveToString()
saveToString
in class org.bukkit.configuration.file.YamlConfiguration
public void loadFromString(String contents) throws org.bukkit.configuration.InvalidConfigurationException
loadFromString
in class org.bukkit.configuration.file.YamlConfiguration
org.bukkit.configuration.InvalidConfigurationException
protected void convertMapsToSections(Map<?,?> input, org.bukkit.configuration.ConfigurationSection section)
convertMapsToSections
in class org.bukkit.configuration.file.YamlConfiguration
protected String parseHeader(String input)
parseHeader
in class org.bukkit.configuration.file.YamlConfiguration
public static org.bukkit.configuration.file.YamlConfiguration loadConfiguration(File file)
YamlConfiguration
, loading from the given file.
Any errors loading the Configuration will be logged and then ignored. If the specified input is not a valid config, a blank config will be returned.
The encoding used may follow the system dependent default.
file
- Input fileIllegalArgumentException
- Thrown if file is nullpublic static org.bukkit.configuration.file.YamlConfiguration loadConfiguration(Reader reader)
YamlConfiguration
, loading from the given reader.
Any errors loading the Configuration will be logged and then ignored. If the specified input is not a valid config, a blank config will be returned.
reader
- inputIllegalArgumentException
- Thrown if stream is null