org.apache.commons.io.output
public class TeeOutputStream extends ProxyOutputStream
Version: $Id: TeeOutputStream.java 610010 2008-01-08 14:50:59Z niallp $
Field Summary | |
---|---|
protected OutputStream | branch the second OutputStream to write to |
Constructor Summary | |
---|---|
TeeOutputStream(OutputStream out, OutputStream branch)
Constructs a TeeOutputStream. |
Method Summary | |
---|---|
void | close()
Closes both streams. |
void | flush()
Flushes both streams. |
void | write(byte[] b)
Write the bytes to both streams. |
void | write(byte[] b, int off, int len)
Write the specified bytes to both streams. |
void | write(int b)
Write a byte to both streams. |
Parameters: out the main OutputStream branch the second OutputStream
Throws: IOException if an I/O error occurs
Throws: IOException if an I/O error occurs
Parameters: b the bytes to write
Throws: IOException if an I/O error occurs
Parameters: b the bytes to write off The start offset len The number of bytes to write
Throws: IOException if an I/O error occurs
Parameters: b the byte to write
Throws: IOException if an I/O error occurs