public class TeeOutputStream extends OutputStream
| Constructor and Description |
|---|
TeeOutputStream(OutputStream... ostream)
Constructs from a varags set of output streams
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b,
int off,
int len)
Writes an array of bytes to all OutputStreams
|
void |
write(int b)
Writes a byte to both output streams
|
writepublic TeeOutputStream(OutputStream... ostream)
ostream... - the varags array of OutputStreamspublic void write(int b) throws IOException
write in class OutputStreamb - the byte to writeIOException - from any of the OutputStreamspublic void write(byte[] b, int off, int len) throws IOException
write in class OutputStreamb - the bytes to writeoff - the offset to start writing fromlen - the number of bytes to writeIOException - from any of the OutputStreamspublic void flush() throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException