java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic class TeeOutputStream
extends java.io.OutputStream
| Constructor | Description |
|---|---|
TeeOutputStream(java.io.OutputStream output1,
java.io.OutputStream output2) |
Base constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
|
void |
write(byte[] buf) |
|
void |
write(byte[] buf,
int off,
int len) |
|
void |
write(int b) |
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.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException