public static class PropertiesConfiguration.DefaultIOFactory extends Object implements PropertiesConfiguration.IOFactory
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 and Description |
|---|
PropertiesConfiguration.DefaultIOFactory() |
| Modifier and Type | Method and Description |
|---|---|
PropertiesConfiguration.PropertiesReader |
createPropertiesReader(Reader in,
char delimiter)
Creates a
PropertiesReader for reading a properties
file. |
PropertiesConfiguration.PropertiesWriter |
createPropertiesWriter(Writer out,
char delimiter)
Creates a
PropertiesWriter for writing a properties
file. |
public PropertiesConfiguration.DefaultIOFactory()
public PropertiesConfiguration.PropertiesReader createPropertiesReader(Reader in, char delimiter)
PropertiesConfiguration.IOFactoryPropertiesReader 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.IOFactoryin - the underlying reader (of the properties file)delimiter - the delimiter character for list parsingPropertiesReader for loading the
configurationpublic PropertiesConfiguration.PropertiesWriter createPropertiesWriter(Writer out, char delimiter)
PropertiesConfiguration.IOFactoryPropertiesWriter 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.IOFactoryout - the underlying writer (to the properties file)delimiter - the delimiter character for list parsingPropertiesWriter for saving the
configurationCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.