FileDocCategorySizeDatePackage
DigestOutputStream.javaAPI DocAndroid 1.5 API799Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto.io

DigestOutputStream

public class DigestOutputStream extends FilterOutputStream

Fields Summary
protected org.bouncycastle.crypto.Digest
digest
Constructors Summary
public DigestOutputStream(OutputStream stream, org.bouncycastle.crypto.Digest digest)

        super(stream);
        this.digest = digest;
    
Methods Summary
public org.bouncycastle.crypto.DigestgetDigest()

        return digest;
    
public voidwrite(int b)

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

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