public class TeeOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
TeeOutputStream(java.io.OutputStream output1,
java.io.OutputStream output2)
Base constructor.
|
public TeeOutputStream(java.io.OutputStream output1,
java.io.OutputStream output2)
output1 - the output stream that is wrapped.output2 - a secondary stream that anything written to output1 is also written to.public void write(byte[] buf)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buf,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException