|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.PropertiesConfiguration.DefaultIOFactory
public static class PropertiesConfiguration.DefaultIOFactory
A default implementation of the IOFactory
interface.
This class implements the createXXXX()
methods defined by
the IOFactory
interface in a way that the default objects
(i.e. PropertiesReader
and PropertiesWriter
are
returned. Customizing either the reader or the writer (or both) can be
done by extending this class and overriding the corresponding
createXXXX()
method.
Constructor Summary | |
---|---|
PropertiesConfiguration.DefaultIOFactory()
|
Method Summary | |
---|---|
PropertiesConfiguration.PropertiesReader |
createPropertiesReader(java.io.Reader in,
char delimiter)
Creates a PropertiesReader for reading a properties
file. |
PropertiesConfiguration.PropertiesWriter |
createPropertiesWriter(java.io.Writer out,
char delimiter)
Creates a PropertiesWriter for writing a properties
file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesConfiguration.DefaultIOFactory()
Method Detail |
---|
public PropertiesConfiguration.PropertiesReader createPropertiesReader(java.io.Reader in, char delimiter)
PropertiesConfiguration.IOFactory
PropertiesReader
for reading a properties
file. This method is called whenever the
PropertiesConfiguration
is loaded. The reader returned
by this method is then used for parsing the properties file.
createPropertiesReader
in interface PropertiesConfiguration.IOFactory
in
- the underlying reader (of the properties file)delimiter
- the delimiter character for list parsing
PropertiesReader
for loading the
configurationpublic PropertiesConfiguration.PropertiesWriter createPropertiesWriter(java.io.Writer out, char delimiter)
PropertiesConfiguration.IOFactory
PropertiesWriter
for writing a properties
file. This method is called before the
PropertiesConfiguration
is saved. The writer returned by
this method is then used for writing the properties file.
createPropertiesWriter
in interface PropertiesConfiguration.IOFactory
out
- the underlying writer (to the properties file)delimiter
- the delimiter character for list parsing
PropertiesWriter
for saving the
configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |