net.sf.hermesftp.utils
Class LoggingReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by net.sf.hermesftp.utils.LoggingReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class LoggingReader
extends java.io.BufferedReader

A writer that adds logging capability to a passed writer. This mechanism corresponds the decorator pattern.

Author:
Lars Behnke

Field Summary
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LoggingReader(java.io.Reader in)
          Constructor.
LoggingReader(java.io.Reader in, int sz)
          Constructor.
 
Method Summary
 java.lang.String readLine()
          
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, 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

LoggingReader

public LoggingReader(java.io.Reader in)
Constructor.

Parameters:
in - A reader.

LoggingReader

public LoggingReader(java.io.Reader in,
                     int sz)
Constructor.

Parameters:
in - A reader.
sz - Input buffer size.
Method Detail

readLine

public java.lang.String readLine()
                          throws java.io.IOException

Overrides:
readLine in class java.io.BufferedReader
Throws:
java.io.IOException


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.