| Modifier and Type | Field and Description |
|---|---|
| private OutputStream | |
| private OutputStream |
| Access | Constructor and Description |
|---|---|
| public | TeeOutputStream(OutputStream
one of the output streams. left, OutputStream the other output stream. right)Constructor for TeeOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| public void | flush()
Overrides java. Implements java. |
| public void | write(byte[]
an array of bytes. b)Overrides java. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. |
| public void | write(int
the byte to write. b)Implements abstract java. |
| left | back to summary |
|---|---|
| private OutputStream left | |
| right | back to summary |
|---|---|
| private OutputStream right | |
| TeeOutputStream | back to summary |
|---|---|
| public TeeOutputStream(OutputStream left, OutputStream right) Constructor for TeeOutputStream.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Close both output streams.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Flush both output streams.
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Write a byte array to both output streams.
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Write a byte array to both output streams.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Write a byte to both output streams.
| |