Class FileConfiguration
- java.lang.Object
-
- net.alpenblock.bungeeperms.config.MemorySection
-
- net.alpenblock.bungeeperms.config.MemoryConfiguration
-
- net.alpenblock.bungeeperms.config.FileConfiguration
-
- All Implemented Interfaces:
Configuration
,ConfigurationSection
- Direct Known Subclasses:
YamlConfiguration
public abstract class FileConfiguration extends MemoryConfiguration
-
-
Field Summary
-
Fields inherited from class net.alpenblock.bungeeperms.config.MemoryConfiguration
defaults, options
-
Fields inherited from class net.alpenblock.bungeeperms.config.MemorySection
map
-
-
Constructor Summary
Constructors Constructor Description FileConfiguration()
FileConfiguration(Configuration defaults)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
buildHeader()
void
load(java.io.File file)
void
load(java.io.InputStream stream)
void
load(java.lang.String file)
abstract void
loadFromString(java.lang.String contents)
FileConfigurationOptions
options()
void
save(java.io.File file)
void
save(java.lang.String file)
abstract java.lang.String
saveToString()
-
Methods inherited from class net.alpenblock.bungeeperms.config.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
-
Methods inherited from class net.alpenblock.bungeeperms.config.MemorySection
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.alpenblock.bungeeperms.config.ConfigurationSection
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
-
-
-
-
Constructor Detail
-
FileConfiguration
public FileConfiguration()
-
FileConfiguration
public FileConfiguration(Configuration defaults)
-
-
Method Detail
-
save
public void save(java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
save
public void save(java.lang.String file) throws java.io.IOException
- Throws:
java.io.IOException
-
saveToString
public abstract java.lang.String saveToString()
-
load
public void load(java.io.File file) throws java.io.FileNotFoundException, java.io.IOException, InvalidConfigurationException
- Throws:
java.io.FileNotFoundException
java.io.IOException
InvalidConfigurationException
-
load
public void load(java.io.InputStream stream) throws java.io.IOException, InvalidConfigurationException
- Throws:
java.io.IOException
InvalidConfigurationException
-
load
public void load(java.lang.String file) throws java.io.FileNotFoundException, java.io.IOException, InvalidConfigurationException
- Throws:
java.io.FileNotFoundException
java.io.IOException
InvalidConfigurationException
-
loadFromString
public abstract void loadFromString(java.lang.String contents) throws InvalidConfigurationException
- Throws:
InvalidConfigurationException
-
buildHeader
protected abstract java.lang.String buildHeader()
-
options
public FileConfigurationOptions options()
- Specified by:
options
in interfaceConfiguration
- Overrides:
options
in classMemoryConfiguration
-
-