public class TeeOutputStream extends ProxyOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected java.io.OutputStream |
branch
the second OutputStream to write to
|
| Constructor and Description |
|---|
TeeOutputStream(java.io.OutputStream out,
java.io.OutputStream branch)
Constructs a TeeOutputStream.
|
public TeeOutputStream(java.io.OutputStream out,
java.io.OutputStream branch)
out - the main OutputStreambranch - the second OutputStreampublic void write(byte[] b)
throws java.io.IOException
write in class ProxyOutputStreamjava.io.IOExceptionOutputStream.write(byte[])public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class ProxyOutputStreamjava.io.IOExceptionOutputStream.write(byte[], int, int)public void write(int b)
throws java.io.IOException
write in class ProxyOutputStreamjava.io.IOExceptionOutputStream.write(int)public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class ProxyOutputStreamjava.io.IOExceptionOutputStream.flush()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class ProxyOutputStreamjava.io.IOExceptionOutputStream.close()