public class PropertyConfigurationStore extends HashtableConfigurationStore<Properties>
properties| Constructor and Description |
|---|
PropertyConfigurationStore()
Initializes a new PropertyConfigurationStore instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reloadConfiguration(File file)
Implements
ConfigurationStore.reloadConfiguration(File). |
void |
setNonSystemProperty(String name,
Object value)
|
void |
storeConfiguration(OutputStream out)
|
getProperty, getPropertyNames, isSystemProperty, removeProperty, setSystemPropertypublic PropertyConfigurationStore()
public void reloadConfiguration(File file) throws 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 instanceIOException - if there is an input error while reading from the
specified fileConfigurationStore.reloadConfiguration(File)public void setNonSystemProperty(String name, 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 ConfigurationStoresetNonSystemProperty in class HashtableConfigurationStore<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(OutputStream out) throws 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
ConfigurationStoreIOException - if there is an output error while storing the
properties managed by this ConfigurationStore into the specified
fileConfigurationStore.storeConfiguration(OutputStream)Copyright © 2022 jitsi.org. All rights reserved.