public class LogWriter
extends java.io.FilterWriter
The writer is piped in the writing process, any characters written are copied to an associated writer object.
Client -> LogWriter -> Writer -> Destination | v Writer (Copy)
Constructor and Description |
---|
LogWriter(java.io.Writer o,
java.io.Writer log)
EscapeWriter constructor comment.
|
public LogWriter(java.io.Writer o, java.io.Writer log)
o
- java.io.Writerlog
- public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FilterWriter
java.io.IOException
- If an I/O error occurspublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.FilterWriter
java.io.IOException
- If an I/O error occurspublic java.io.Writer getLog()
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(int c) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException
public void write(java.lang.String str, int off, int len) throws java.io.IOException
write
in class java.io.FilterWriter
java.io.IOException