Example usage for Java org.apache.commons.configuration2 PropertiesConfiguration fields, constructors, methods, implement or subclass
The text is from its open source code.
PropertiesConfiguration() Creates an empty PropertyConfiguration object which can be used to synthesize a new Properties file by adding values and then saving(). |
void | addProperty(final String key, final Object value) |
void | clear() |
void | clearProperty(final String key) Removes the specified property from this configuration. |
boolean | containsKey(final String key) This implementation handles synchronization and delegates to containsKeyInternal() . |
boolean | getBoolean(final String key) |
double | getDouble(final String key) |
float | getFloat(final String key) |
int | getInt(final String key) |
Iterator | getKeys() This implementation takes care of synchronization and then delegates to getKeysInternal() for obtaining the actual iterator. |
Iterator | getKeys(final String prefix) This implementation returns keys that either match the prefix or start with the prefix followed by a dot ('.'). |
PropertiesConfigurationLayout | getLayout() Returns the associated layout object. |
Object | getProperty(final String key) This implementation ensures proper synchronization. |
String | getString(final String key) |
void | read(final Reader in) This implementation delegates to the associated layout object which does the actual loading. |
void | setIOFactory(final IOFactory ioFactory) Sets the IOFactory to be used for creating readers and writers when loading or saving this configuration. |
void | setProperty(final String key, final Object value) |
int | size() This implementation handles synchronization and delegates to sizeInternal() . |