| java.lang.Object java.io.OutputStream com.quadcap.io.LogOutputStream
LogOutputStream | public class LogOutputStream extends OutputStream (Code) | | A filter output stream that tees off its output to a log file
author: Stan Bailes |
Method Summary | |
public void | close() | public void | flush() Flush the underlying stream. | public synchronized void | write(int b) Write a byte. | public synchronized void | write(byte[] b, int off, int len) | public synchronized void | write(byte[] b) |
LogOutputStream | public LogOutputStream(OutputStream os, OutputStream log, String prefix)(Code) | | Construct a new log output stream
Parameters: os - the underlying output 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 |
write | public synchronized void write(int b) throws IOException(Code) | | Write a byte.
Parameters: b - the byte. exception: IOException - may be thrown. |
write | public synchronized void write(byte[] b, int off, int len) throws IOException(Code) | | Write a buffer
Parameters: b - the buffer Parameters: off - the index of the first byte in the buffer to write. Parameters: len - the number of bytes to write. exception: IOException - may be thrown. |
write | public synchronized void write(byte[] b) throws IOException(Code) | | Write a buffer
Parameters: b - the buffer exception: IOException - may be thrown. |
|
|