The
Properties
class represents a persistent set of properties. The
Properties
can be saved to a stream or loaded from a stream. Each key and its corresponding value in the property list is a string.
A property list can contain another property list as its "defaults"; this second property list is searched if the property key is not found in the original property list. Because Properties inherits from Hashtable, the put and putAll methods can be applied to a Properties object. Their use is strongly discouraged as they allow the caller to insert entries whose keys or values are not Strings. The setProperty method should be used instead. If the store or save method is called on a "compromised" Properties object that contains a non-String key or value, the call will fail.
This is a special implementation for XML :
<properties> <key name="My_key1">My_Value1</key> <key name="My_key2">My_Value2</key> </properties>
@version $Revision: 1.5 $
@author Philippe Le H�garet (plh@w3.org)
@author Beno�t Mah� (bmahe@w3.org)