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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the stream, flushing it first.
|
void |
flush()
Flush the stream.
|
java.io.Writer |
getLog() |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str,
int off,
int len) |
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.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterWriterjava.io.IOException - If an I/O error occurspublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterWriterjava.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.FilterWriterjava.io.IOExceptionpublic void write(int c)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOExceptionpublic void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
write in class java.io.FilterWriterjava.io.IOException