|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.util.SortedConfigurationWriter
public class SortedConfigurationWriter
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.
Constructor Summary | |
---|---|
SortedConfigurationWriter()
The default constructor, does nothing. |
Method Summary | |
---|---|
protected String |
getDescription(String key)
Returns a description for the given key. |
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. |
void |
save(String filename,
Configuration config)
Saves the given configuration into a file specified by the given filename. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortedConfigurationWriter()
Method Detail |
---|
protected String getDescription(String key)
key
- the key for which a description should be printed.
public void save(String filename, Configuration config) throws IOException
filename
- the filenameconfig
- the configuration
IOException
- if an IOError occurs.public void save(File file, Configuration config) throws IOException
file
- the target fileconfig
- the configuration
IOException
- if an IOError occurs.public void save(OutputStream outStream, Configuration config) throws IOException
outStream
- the target output streamconfig
- the configuration
IOException
- if writing fails.
|
JCommon 1.0.17-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |