| java.lang.Object org.jfree.util.SortedConfigurationWriter
SortedConfigurationWriter | public class SortedConfigurationWriter (Code) | | Writes a 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.
author: Thomas Morgner |
SortedConfigurationWriter | public SortedConfigurationWriter()(Code) | | The default constructor, does nothing.
|
getDescription | protected String getDescription(String key)(Code) | | Returns a description for the given key. This implementation returns
null to indicate that no description should be written. Subclasses can
overwrite this method to provide comments for every key. These descriptions
will be included as inline comments.
Parameters: key - the key for which a description should be printed. the description or null if no description should be printed. |
save | public void save(String filename, Configuration config) throws IOException(Code) | | Saves the given configuration into a file specified by the given
filename.
Parameters: filename - the filename Parameters: config - the configuration throws: IOException - if an IOError occurs. |
save | public void save(File file, Configuration config) throws IOException(Code) | | Saves the given configuration into a file specified by the given
file object.
Parameters: file - the target file Parameters: config - the configuration throws: IOException - if an IOError occurs. |
save | public void save(OutputStream outStream, Configuration config) throws IOException(Code) | | Writes the configuration into the given output stream.
Parameters: outStream - the target output stream Parameters: config - the configuration throws: IOException - if writing fails. |
|
|