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.OutputStream
java.io.IOException
public void write(byte[] buf, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException