Properties is a Hashtable where the keys and values must be Strings. Each
Properties can have a default Properties which specifies the default values
which are used if the key is not in this Properties.
See Also:Hashtable See Also:java.lang.System.getProperties
propertyNames() Answers all of the property names that this Properties contains.
public void
save(OutputStream out, String comment) Saves the mappings in this Properties to the specified OutputStream,
putting the specified comment at the beginning.
store(OutputStream out, String comment) Stores the mappings in this Properties to the specified OutputStream,
putting the specified comment at the beginning.
Searches for the property with the specified name. If the property is not
found, look in the default properties. If the property is not found in
the default properties, answer null.
Parameters: name - the name of the property to find the named property value
Searches for the property with the specified name. If the property is not
found, look in the default properties. If the property is not found in
the default properties, answer the specified default.
Parameters: name - the name of the property to find Parameters: defaultValue - the default value the named property value
Loads properties from the specified InputStream. The properties are of
the form key=value, one property per line.
Parameters: in - the input stream throws: IOException -
Saves the mappings in this Properties to the specified OutputStream,
putting the specified comment at the beginning. The output from this
method is suitable for being read by the load() method.
Parameters: out - the OutputStream Parameters: comment - the comment exception: ClassCastException - when the key or value of a mapping is not a String
Maps the specified key to the specified value. If the key already exists,
the old value is replaced. The key and value cannot be null.
Parameters: name - the key Parameters: value - the value the old value mapped to the key, or null
Stores the mappings in this Properties to the specified OutputStream,
putting the specified comment at the beginning. The output from this
method is suitable for being read by the load() method.
Parameters: out - the OutputStream Parameters: comment - the comment throws: IOException - exception: ClassCastException - when the key or value of a mapping is not a String