FileDocCategorySizeDatePackage
TeeOutputStream.javaAPI DocExample762Sat Feb 04 06:03:38 GMT 2006com.elharo.io

TeeOutputStream

public class TeeOutputStream extends FilterOutputStream

Fields Summary
private OutputStream
out1
private OutputStream
out2
Constructors Summary
public TeeOutputStream(OutputStream stream1, OutputStream stream2)

    super(stream1);
    out1 = stream1;
    out2 = stream2;
  
Methods Summary
public voidclose()

    out1.close();
    out2.close();
  
public voidflush()

    out1.flush();
    out2.flush();  
  
public voidwrite(int b)

    out1.write(b);
    out2.write(b);  
  
public voidwrite(byte[] data, int offset, int length)

    out1.write(data, offset, length);
    out2.write(data, offset, length);