|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.io.OutputStream
com.ridgesoft.io.OutputStreamTee
public class OutputStreamTee
Class to tee one output stream into two output streams.
Output written to an object of this class writes through to the two underlying OutputStreams.
| Constructor Summary | |
|---|---|
OutputStreamTee(OutputStream stream1,
OutputStream stream2)
Construct and output stream tee. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this OutputStream by releasing the two underlying OutputStreams. |
void |
flush()
Flushes the two streams. |
void |
write(byte[] b)
Writes an array of bytes to the two streams. |
void |
write(byte[] b,
int off,
int len)
Writes a portion of an array of bytes to the two streams. |
void |
write(int b)
Writes one byte to the two streams. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Constructor Detail |
|---|
public OutputStreamTee(OutputStream stream1,
OutputStream stream2)
stream1 - first output streamstream2 - second output stream| Method Detail |
|---|
public void close()
throws IOException
This method does not close the underlying OutputStreams.
close in class OutputStreamIOException
public void flush()
throws IOException
flush in class OutputStreamIOException
public void write(byte[] b)
throws IOException
write in class OutputStreamb - array of bytes to write
IOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamb - off - len -
IOException
public void write(int b)
throws IOException
write in class OutputStreamb - byte to write
IOException
|
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||