FileDocCategorySizeDatePackage
CheckedOutputStream.javaAPI DocExample681Tue Dec 12 18:57:40 GMT 2000None

CheckedOutputStream

public class CheckedOutputStream extends FilterOutputStream

Fields Summary
private Checksum
cksum
Constructors Summary
public CheckedOutputStream(OutputStream out, Checksum cksum)

        super(out);
        this.cksum = cksum;
    
Methods Summary
public ChecksumgetChecksum()

        return cksum;
    
public voidwrite(int b)

        out.write(b);
        cksum.update(b);
    
public voidwrite(byte[] b)

        out.write(b, 0, b.length);
        cksum.update(b, 0, b.length);
    
public voidwrite(byte[] b, int off, int len)

        out.write(b, off, len);
        cksum.update(b, off, len);