|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.configuration.xml.XMLConfigurationStore
public class XMLConfigurationStore
Implements a ConfigurationStore which serializes property
name-value associations in XML format.
| Constructor Summary | |
|---|---|
XMLConfigurationStore()
|
|
| Method Summary | |
|---|---|
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)
Implements ConfigurationStore.setNonSystemProperty(String, Object). |
void |
setSystemProperty(String propertyName)
Implements ConfigurationStore.setSystemProperty(String). |
void |
storeConfiguration(OutputStream out)
Implements ConfigurationStore.storeConfiguration(OutputStream). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLConfigurationStore()
| Method Detail |
|---|
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 of
ConfigurationStore.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 property
ConfigurationStore.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 instance
IOException - if there is an input error while reading from the
specified file
XMLException - 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)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||