| java.lang.Object java.io.OutputStream org.apache.tools.ant.util.TeeOutputStream
TeeOutputStream | public class TeeOutputStream extends OutputStream (Code) | | A simple T-piece to replicate an output stream into two separate streams
|
Method Summary | |
public void | close() Close both output streams. | public void | flush() Flush both output streams. | public void | write(byte[] b) Write a byte array to both output streams. | public void | write(byte[] b, int off, int len) Write a byte array to both output streams. | public void | write(int b) Write a byte to both output streams. |
TeeOutputStream | public TeeOutputStream(OutputStream left, OutputStream right)(Code) | | Constructor for TeeOutputStream.
Parameters: left - one of the output streams. Parameters: right - the other output stream. |
write | public void write(byte[] b) throws IOException(Code) | | Write a byte array to both output streams.
Parameters: b - an array of bytes. throws: IOException - on error. |
write | public void write(byte[] b, int off, int len) throws IOException(Code) | | Write a byte array to both output streams.
Parameters: b - the data. Parameters: off - the start offset in the data. Parameters: len - the number of bytes to write. throws: IOException - on error. |
write | public void write(int b) throws IOException(Code) | | Write a byte to both output streams.
Parameters: b - the byte to write. throws: IOException - on error. |
|
|