| java.lang.Object java.io.Reader com.quadcap.io.LogReader
LogReader | public class LogReader extends Reader (Code) | | A filter input stream that tees off input into a log file, with a prefix
identifying the stream.
author: Stan Bailes |
Method Summary | |
public void | close() | public synchronized int | read() | public int | read(char[] cbuf, int off, int len) |
LogReader | public LogReader(Reader in, Writer log, String prefix)(Code) | | Construct a new log reader
Parameters: is - the underlying reader Parameters: log - the log stream Parameters: prefix - a string identifying this log stream to be prefixedto every line output by this filter. |
close | public void close() throws IOException(Code) | | Close the underlying stream (but not the log stream!)
exception: IOException - may be thrown |
read | public int read(char[] cbuf, int off, int len) throws IOException(Code) | | Read (and log) an array of bytes
|
|
|