net.sf.hermesftp.utils
Class LoggingWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by net.sf.hermesftp.utils.LoggingWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class LoggingWriter
extends java.io.PrintWriter

Helper class that logs server responses.

Author:
Lars Behnke

Field Summary
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
LoggingWriter(java.io.OutputStream out, boolean flush)
          Constructor.
LoggingWriter(java.io.Writer out, boolean flush)
          Constructor.
 
Method Summary
 void println(java.lang.String text)
          
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingWriter

public LoggingWriter(java.io.OutputStream out,
                     boolean flush)
Constructor.

Parameters:
out - The output stream.
flush - Automatic flush

LoggingWriter

public LoggingWriter(java.io.Writer out,
                     boolean flush)
Constructor.

Parameters:
out - The output writer.
flush - Automatic flush
Method Detail

println

public void println(java.lang.String text)

Overrides:
println in class java.io.PrintWriter


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