public class SortedProperties extends Properties
Properties when saving and is based on http://www.rgagnon.com/javadetails/java-0614.html.defaults| Constructor and Description |
|---|
SortedProperties() |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<Object> |
keys()
Overrides, called by the store method.
|
void |
store(OutputStream out)
Writes this property list (key and element pairs) in this
Properties table to the output stream in a format suitable for
loading into a Properties table using the
load(InputStream) method. |
void |
store(OutputStream out,
String comments) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML, stringPropertyNamespublic Enumeration<Object> keys()
public void store(OutputStream out) throws IOException
Properties table to the output stream in a format suitable for
loading into a Properties table using the
load(InputStream) method.
Properties from the defaults table of this Properties table (if
any) are not written out by this method.
This method outputs the properties keys and values in the same format as
specified in store(Writer), with the following differences:
\uxxxx for their appropriate unicode hexadecimal value
xxxx.
\u0020 and characters greater than
\u007E in property keys or values are written as
\uxxxx for the appropriate hexadecimal value
xxxx.
After the entries have been written, the output stream is flushed. The output stream remains open after this method returns.
out - an output stream.IOException - if writing this property list to the specified
output stream throws an IOException.ClassCastException - if this Properties object contains
any keys or values that are not Strings.NullPointerException - if out is null.public void store(OutputStream out, String comments) throws IOException
store in class PropertiesIOExceptionCopyright © 2018. All rights reserved.