org.apache.tools.ant.util
public class TeeOutputStream extends OutputStream
Constructor Summary | |
---|---|
TeeOutputStream(OutputStream left, OutputStream right)
Constructor for TeeOutputStream. |
Method Summary | |
---|---|
void | close()
Close both output streams. |
void | flush()
Flush both output streams. |
void | write(byte[] b)
Write a byte array to both output streams. |
void | write(byte[] b, int off, int len)
Write a byte array to both output streams. |
void | write(int b)
Write a byte to both output streams. |
Parameters: left one of the output streams. right the other output stream.
Throws: IOException on error.
Throws: IOException on error
Parameters: b an array of bytes.
Throws: IOException on error.
Parameters: b the data. off the start offset in the data. len the number of bytes to write.
Throws: IOException on error.
Parameters: b the byte to write.
Throws: IOException on error.