public class XMLConfigurationStore extends java.lang.Object implements ConfigurationStore
ConfigurationStore
which serializes property
name-value associations in XML format.Constructor and Description |
---|
XMLConfigurationStore() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getProperty(java.lang.String propertyName)
Implements
ConfigurationStore.getProperty(String) . |
java.lang.String[] |
getPropertyNames()
Implements {ConfigurationStore#getPropertyNames()}.
|
boolean |
isSystemProperty(java.lang.String propertyName)
Implements {ConfigurationStore#isSystemProperty(String)}.
|
void |
reloadConfiguration(java.io.File file)
Implements
ConfigurationStore.reloadConfiguration(File) . |
void |
removeProperty(java.lang.String propertyName)
Implements
ConfigurationStore.removeProperty(String) . |
void |
setNonSystemProperty(java.lang.String propertyName,
java.lang.Object property)
|
void |
setSystemProperty(java.lang.String propertyName)
Implements
ConfigurationStore.setSystemProperty(String) . |
void |
storeConfiguration(java.io.OutputStream out)
|
public java.lang.Object getProperty(java.lang.String propertyName)
ConfigurationStore.getProperty(String)
. Gets the value
in this ConfigurationStore
of a property with a specific
name.getProperty
in interface ConfigurationStore
propertyName
- the name of the property to get the value ofConfigurationStore.getProperty(String)
public java.lang.String[] getPropertyNames()
getPropertyNames
in interface ConfigurationStore
ConfigurationStore.getPropertyNames()
public boolean isSystemProperty(java.lang.String propertyName)
isSystemProperty
in interface ConfigurationStore
propertyName
- the name of a property which is to be determined
whether it is a system propertyConfigurationStore.isSystemProperty(String)
public void reloadConfiguration(java.io.File file) throws java.io.IOException, XMLException
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.reloadConfiguration
in interface ConfigurationStore
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 fileXMLException
- if parsing the contents of the specified
file failsConfigurationStore.reloadConfiguration(File)
public void removeProperty(java.lang.String propertyName)
ConfigurationStore.removeProperty(String)
. Removes the
value association in this ConfigurationStore of the property
with a specific name. If the property with the specified name is not
associated with a value in this ConfigurationStore, does
nothing.removeProperty
in interface ConfigurationStore
propertyName
- the name of the property which is to have its value
association in this ConfigurationStore removedConfigurationStore.removeProperty(String)
public void setNonSystemProperty(java.lang.String propertyName, java.lang.Object property)
ConfigurationStore.setNonSystemProperty(String, Object)
. Sets the
value of a non-system property with a specific name to a specific value
in this ConfigurationStore.setNonSystemProperty
in interface ConfigurationStore
propertyName
- the name of the non-system property to be set to the
specified value in this ConfigurationStoreproperty
- the value to be assigned to the non-system property with the
specified name in this ConfigurationStoreConfigurationStore.setNonSystemProperty(String, Object)
public void setSystemProperty(java.lang.String propertyName)
ConfigurationStore.setSystemProperty(String)
. Sets a
property with a specific name to be considered a system property by the
ConfigurationStore.setSystemProperty
in interface ConfigurationStore
propertyName
- the name of the property to be set as a system
property in this ConfigurationStoreConfigurationStore.setSystemProperty(String)
public void storeConfiguration(java.io.OutputStream out)
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.storeConfiguration
in interface ConfigurationStore
out
- the OutputStream to receive the serialized form of
the property name-value associations currently present in this
ConfigurationStoreConfigurationStore.storeConfiguration(OutputStream)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.