public class XMLConfigurationStore extends Object implements ConfigurationStore
ConfigurationStore which serializes property
name-value associations in XML format.| Constructor and Description |
|---|
XMLConfigurationStore() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String propertyName)
Implements
ConfigurationStore.getProperty(String). |
String[] |
getPropertyNames()
Implements {ConfigurationStore#getPropertyNames()}.
|
boolean |
isSystemProperty(String propertyName)
Implements {ConfigurationStore#isSystemProperty(String)}.
|
void |
reloadConfiguration(File file)
Implements
ConfigurationStore.reloadConfiguration(File). |
void |
removeProperty(String propertyName)
Implements
ConfigurationStore.removeProperty(String). |
void |
setNonSystemProperty(String propertyName,
Object property)
|
void |
setSystemProperty(String propertyName)
Implements
ConfigurationStore.setSystemProperty(String). |
void |
storeConfiguration(OutputStream out)
|
public Object getProperty(String propertyName)
ConfigurationStore.getProperty(String). Gets the value
in this ConfigurationStore of a property with a specific
name.getProperty in interface ConfigurationStorepropertyName - the name of the property to get the value ofConfigurationStore.getProperty(String)public String[] getPropertyNames()
getPropertyNames in interface ConfigurationStoreConfigurationStore.getPropertyNames()public boolean isSystemProperty(String propertyName)
isSystemProperty in interface ConfigurationStorepropertyName - the name of a property which is to be determined
whether it is a system propertyConfigurationStore.isSystemProperty(String)public void reloadConfiguration(File file) throws 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 ConfigurationStorefile - 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 fileXMLException - if parsing the contents of the specified
file failsConfigurationStore.reloadConfiguration(File)public void removeProperty(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 ConfigurationStorepropertyName - the name of the property which is to have its value
association in this ConfigurationStore removedConfigurationStore.removeProperty(String)public void setNonSystemProperty(String propertyName, 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 ConfigurationStorepropertyName - 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(String propertyName)
ConfigurationStore.setSystemProperty(String). Sets a
property with a specific name to be considered a system property by the
ConfigurationStore.setSystemProperty in interface ConfigurationStorepropertyName - the name of the property to be set as a system
property in this ConfigurationStoreConfigurationStore.setSystemProperty(String)public void storeConfiguration(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 ConfigurationStoreout - the OutputStream to receive the serialized form of
the property name-value associations currently present in this
ConfigurationStoreConfigurationStore.storeConfiguration(OutputStream)Copyright © 2022 jitsi.org. All rights reserved.