Example usage for Java org.apache.commons.configuration FileConfiguration fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addProperty(String key, Object value) Add a property to the configuration. |
void | clear() Remove all properties from the configuration. |
void | clearProperty(String key) Remove a property from the configuration. |
boolean | containsKey(String key) Check if the configuration contains the specified key. |
boolean | getBoolean(String key) Get a boolean associated with the given configuration key. |
boolean | getBoolean(String key, boolean defaultValue) Get a boolean associated with the given configuration key. |
double | getDouble(String key) Get a double associated with the given configuration key. |
File | getFile() Return the file where the configuration is stored. |
String | getFileName() Return the name of the file. |
int | getInt(String key, int defaultValue) Get a int associated with the given configuration key. |
int | getInt(String key) Get a int associated with the given configuration key. |
Iterator | getKeys() Get the list of the keys contained in the configuration. |
List | getList(String key) Get a List of strings associated with the given configuration key. |
long | getLong(String key, long defaultValue) Get a long associated with the given configuration key. |
Object | getProperty(String key) Gets a property from the configuration. |
ReloadingStrategy | getReloadingStrategy() Return the reloading strategy. |
String | getString(String key) Get a string associated with the given configuration key. |
String | getString(String key, String defaultValue) Get a string associated with the given configuration key. |
URL | getURL() Return the URL where the configuration is stored. |
void | load() Load the configuration from the underlying URL. |
void | load(String fileName) Locate the specified file and load the configuration. |
void | load(File file) Load the configuration from the specified file. |
void | load(URL url) Load the configuration from the specified URL. |
void | load(InputStream in) Load the configuration from the specified stream, using the encoding returned by #getEncoding() . |
void | load(Reader in) Load the configuration from the specified reader. |
void | reload() Reload the configuration. |
void | save() Save the configuration. |
void | save(String fileName) Save the configuration to the specified file. |
void | save(File file) Save the configuration to the specified file. |
void | save(URL url) Save the configuration to the specified URL. |
void | save(OutputStream out) Save the configuration to the specified stream, using the encoding returned by #getEncoding() . |
void | save(Writer out) Save the configuration to the specified writer. |
void | setAutoSave(boolean autoSave) Enable or disable the automatical saving of modified properties to the disk. |
void | setProperty(String key, Object value) Set a property, this will replace any previously set values. |
void | setReloadingStrategy(ReloadingStrategy strategy) Set the reloading strategy. |