FileDocCategorySizeDatePackage
TeeOutputStream.javaAPI DocExample776Sun Mar 28 19:06:22 BST 1999com.macfaq.io

TeeOutputStream

public class TeeOutputStream extends FilterOutputStream

Fields Summary
OutputStream
out1
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 synchronized voidwrite(int b)

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

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