org.apache.commons.configuration
Class PropertiesConfiguration.PropertiesReader
java.lang.Object
|
+--java.io.Reader
|
+--java.io.BufferedReader
|
+--java.io.LineNumberReader
|
+--org.apache.commons.configuration.PropertiesConfiguration.PropertiesReader
- Enclosing class:
- PropertiesConfiguration
- public static class PropertiesConfiguration.PropertiesReader
- extends LineNumberReader
This class is used to read properties lines. These lines do
not terminate with new-line chars but rather when there is no
backslash sign a the end of the line. This is used to
concatenate multiple lines for readability.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesConfiguration.PropertiesReader
public PropertiesConfiguration.PropertiesReader(Reader reader)
- Constructor.
- Parameters:
reader
- A Reader.
readProperty
public String readProperty()
throws IOException
- Read a property. Returns null if Stream is
at EOF. Concatenates lines ending with "\".
Skips lines beginning with "#" or "!" and empty lines.
- Returns:
- A string containing a property value or null
- Throws:
IOException
- in case of an I/O error
Copyright © 2001-2005 The Apache Software Foundation. All Rights Reserved.