| Modifier and Type | Field and Description |
|---|---|
| protected OutputStream | branch
the second OutputStream to write to |
| Access | Constructor and Description |
|---|---|
| public | TeeOutputStream(OutputStream
the main OutputStream out, OutputStream the second OutputStream branch)Constructs a TeeOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements java. |
| public void | flush()
Overrides org. Implements java. |
| public synchronized void | write(byte[]
the data to be written. b)Overrides org. b.length bytes to this output stream.
|
| public synchronized void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides org. len bytes from the specified
byte array starting at offset off to
this output stream.
|
| public synchronized void | write(int
the b)byte.Overrides org. byte to this output stream.
|
| branch | back to summary |
|---|---|
| protected OutputStream branch the second OutputStream to write to | |
| TeeOutputStream | back to summary |
|---|---|
| public TeeOutputStream(OutputStream out, OutputStream branch) Constructs a TeeOutputStream.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Closes both streams.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides org. Implements java. Flushes both streams.
| |
| write | back to summary |
|---|---|
| public synchronized void write(byte[] b) throws IOException Overrides org. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public synchronized void write(byte[] b, int off, int len) throws IOException Overrides org. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public synchronized void write(int b) throws IOException Overrides org. Doc from java. Writes the specified
The
Implements the abstract
| |