org.norther.tammi.core.config
Class Configuration.PropertiesReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by org.norther.tammi.core.config.Configuration.PropertiesReader
All Implemented Interfaces:
Closeable, Readable
Enclosing class:
Configuration

protected static class Configuration.PropertiesReader
extends BufferedReader

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.


Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
Configuration.PropertiesReader(Reader reader)
          Constructor.
 
Method Summary
 String readProperty()
          Reads a property.
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration.PropertiesReader

public Configuration.PropertiesReader(Reader reader)
Constructor.

Parameters:
reader - a reader to wrap.
Method Detail

readProperty

public String readProperty()
                    throws IOException
Reads a property.

Returns:
the property.
Throws:
IOException - for I/O errors.


Copyright © 2004 The Norther Organization. All rights reserved.