Java org.apache.commons.configuration FileConfiguration fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.configuration FileConfiguration fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.configuration FileConfiguration.

The text is from its open source code.

Implementation

org.apache.commons.configuration.FileConfiguration has the following implementations.
Click this link to see all its implementation.

Method

voidaddProperty(String key, Object value)
Add a property to the configuration.
voidclear()
Remove all properties from the configuration.
voidclearProperty(String key)
Remove a property from the configuration.
booleancontainsKey(String key)
Check if the configuration contains the specified key.
booleangetBoolean(String key)
Get a boolean associated with the given configuration key.
booleangetBoolean(String key, boolean defaultValue)
Get a boolean associated with the given configuration key.
doublegetDouble(String key)
Get a double associated with the given configuration key.
FilegetFile()
Return the file where the configuration is stored.
StringgetFileName()
Return the name of the file.
intgetInt(String key, int defaultValue)
Get a int associated with the given configuration key.
intgetInt(String key)
Get a int associated with the given configuration key.
IteratorgetKeys()
Get the list of the keys contained in the configuration.
ListgetList(String key)
Get a List of strings associated with the given configuration key.
longgetLong(String key, long defaultValue)
Get a long associated with the given configuration key.
ObjectgetProperty(String key)
Gets a property from the configuration.
ReloadingStrategygetReloadingStrategy()
Return the reloading strategy.
StringgetString(String key)
Get a string associated with the given configuration key.
StringgetString(String key, String defaultValue)
Get a string associated with the given configuration key.
URLgetURL()
Return the URL where the configuration is stored.
voidload()
Load the configuration from the underlying URL.
voidload(String fileName)
Locate the specified file and load the configuration.
voidload(File file)
Load the configuration from the specified file.
voidload(URL url)
Load the configuration from the specified URL.
voidload(InputStream in)
Load the configuration from the specified stream, using the encoding returned by #getEncoding() .
voidload(Reader in)
Load the configuration from the specified reader.
voidreload()
Reload the configuration.
voidsave()
Save the configuration.
voidsave(String fileName)
Save the configuration to the specified file.
voidsave(File file)
Save the configuration to the specified file.
voidsave(URL url)
Save the configuration to the specified URL.
voidsave(OutputStream out)
Save the configuration to the specified stream, using the encoding returned by #getEncoding() .
voidsave(Writer out)
Save the configuration to the specified writer.
voidsetAutoSave(boolean autoSave)
Enable or disable the automatical saving of modified properties to the disk.
voidsetProperty(String key, Object value)
Set a property, this will replace any previously set values.
voidsetReloadingStrategy(ReloadingStrategy strategy)
Set the reloading strategy.