FileDocCategorySizeDatePackage
TeeOutputStream.javaAPI DocApache Axis 1.41510Sat Apr 22 18:57:28 BST 2006org.apache.axis.utils

TeeOutputStream

public class TeeOutputStream extends OutputStream

Fields Summary
private OutputStream
left
private OutputStream
right
Constructors Summary
public TeeOutputStream(OutputStream left, OutputStream right)

        this.left = left;
        this.right = right;
    
Methods Summary
public voidclose()

        left.close();
        right.close();
    
public voidflush()

        left.flush();
        right.flush();
    
public voidwrite(byte[] b)

        left.write(b);
        right.write(b);
    
public voidwrite(byte[] b, int off, int len)

        left.write(b, off, len);
        right.write(b, off, len);
    
public voidwrite(int b)

        left.write(b);
        right.write(b);