org.jfree.util
public class SortedConfigurationWriter extends Object
Configuration
instance into a property file, where
the keys are sorted by their name. Writing sorted keys make it easier for
users to find and change properties in the file.
Constructor Summary | |
---|---|
SortedConfigurationWriter()
The default constructor, does nothing. |
Method Summary | |
---|---|
protected String | getDescription(String key)
Returns a description for the given key. |
void | save(String filename, Configuration config)
Saves the given configuration into a file specified by the given
filename.
|
void | save(File file, Configuration config)
Saves the given configuration into a file specified by the given
file object.
|
void | save(OutputStream outStream, Configuration config)
Writes the configuration into the given output stream.
|
Parameters: key the key for which a description should be printed.
Returns: the description or null if no description should be printed.
Parameters: filename the filename config the configuration
Throws: IOException if an IOError occurs.
Parameters: file the target file config the configuration
Throws: IOException if an IOError occurs.
Parameters: outStream the target output stream config the configuration
Throws: IOException if writing fails.