public class PropertyConfigurationStore extends HashtableConfigurationStore<java.util.Properties>
properties
Constructor and Description |
---|
PropertyConfigurationStore()
Initializes a new PropertyConfigurationStore instance.
|
Modifier and Type | Method and Description |
---|---|
void |
reloadConfiguration(java.io.File file)
Implements
ConfigurationStore.reloadConfiguration(File) . |
void |
setNonSystemProperty(java.lang.String name,
java.lang.Object value)
|
void |
storeConfiguration(java.io.OutputStream out)
|
getProperty, getPropertyNames, isSystemProperty, removeProperty, setSystemProperty
public PropertyConfigurationStore()
public void reloadConfiguration(java.io.File file) throws java.io.IOException
ConfigurationStore.reloadConfiguration(File)
. Removes
all property name-value associations currently present in this
ConfigurationStore and deserializes new property name-value
associations from a specific File which presumably is in the
format represented by this instance.file
- the File to be read and to deserialize new property
name-value associations from into this instancejava.io.IOException
- if there is an input error while reading from the
specified fileConfigurationStore.reloadConfiguration(File)
public void setNonSystemProperty(java.lang.String name, java.lang.Object value)
HashtableConfigurationStore.setNonSystemProperty(String, Object)
.
As the backend of this instance is a Properties instance, it can
only store String values and the specified value to be
associated with the specified property name is converted to a
String.setNonSystemProperty
in interface ConfigurationStore
setNonSystemProperty
in class HashtableConfigurationStore<java.util.Properties>
name
- the name of the non-system property to be set to the
specified value in this ConfigurationStorevalue
- the value to be assigned to the non-system property with the
specified name in this ConfigurationStoreConfigurationStore.setNonSystemProperty(String, Object)
public void storeConfiguration(java.io.OutputStream out) throws java.io.IOException
ConfigurationStore.storeConfiguration(OutputStream)
.
Stores/serializes the property name-value associations currently present
in this ConfigurationStore into a specific OutputStream
in the format represented by this instance.out
- the OutputStream to receive the serialized form of
the property name-value associations currently present in this
ConfigurationStorejava.io.IOException
- if there is an output error while storing the
properties managed by this ConfigurationStore into the specified
fileConfigurationStore.storeConfiguration(OutputStream)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.