marytts.util.io
Class LoggingReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by marytts.util.io.LoggingReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class LoggingReader
extends java.io.FilterReader


Field Summary
protected  org.apache.log4j.Logger logger
           
protected  java.lang.StringBuffer logText
           
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LoggingReader(java.io.Reader in, org.apache.log4j.Logger logger)
           
 
Method Summary
 void close()
           
 void logRead()
           
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.FilterReader
mark, markSupported, 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
 

Field Detail

logger

protected org.apache.log4j.Logger logger

logText

protected java.lang.StringBuffer logText
Constructor Detail

LoggingReader

public LoggingReader(java.io.Reader in,
                     org.apache.log4j.Logger logger)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterReader
Throws:
java.io.IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterReader
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterReader
Throws:
java.io.IOException

logRead

public void logRead()