public abstract class FileConfiguration extends MemoryConfiguration
defaults, options
map
Constructor and Description |
---|
FileConfiguration() |
FileConfiguration(Configuration defaults) |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
buildHeader() |
void |
load(File file) |
void |
load(InputStream stream) |
void |
load(String file) |
abstract void |
loadFromString(String contents) |
FileConfigurationOptions |
options() |
void |
save(File file) |
void |
save(String file) |
abstract String |
saveToString() |
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
public FileConfiguration()
public FileConfiguration(Configuration defaults)
public void save(File file) throws IOException
IOException
public void save(String file) throws IOException
IOException
public abstract String saveToString()
public void load(File file) throws FileNotFoundException, IOException, InvalidConfigurationException
public void load(InputStream stream) throws IOException, InvalidConfigurationException
public void load(String file) throws FileNotFoundException, IOException, InvalidConfigurationException
public abstract void loadFromString(String contents) throws InvalidConfigurationException
InvalidConfigurationException
protected abstract String buildHeader()
public FileConfigurationOptions options()
options
in interface Configuration
options
in class MemoryConfiguration
Copyright © 2020. All rights reserved.