| java.lang.Object java.io.InputStream com.quadcap.io.LogInputStream
LogInputStream | public class LogInputStream extends InputStream (Code) | | A filter input stream that tees off input into a log file, with an
optional prefix for each line (delimited by newline), which can be
used to identify the stream.
author: Stan Bailes |
Method Summary | |
public void | close() | public synchronized int | read() |
LogInputStream | public LogInputStream(InputStream is, OutputStream log, String prefix)(Code) | | Construct a new log input stream
Parameters: is - the underlying input stream 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 and the log output stream
exception: IOException - may be thrown |
|
|