FileDocCategorySizeDatePackage
DigesterOutputStream.javaAPI DocJava SE 6 API1597Tue Jun 10 00:23:04 BST 2008com.sun.org.apache.xml.internal.security.utils

DigesterOutputStream

public class DigesterOutputStream extends ByteArrayOutputStream
author
raul

Fields Summary
static final byte[]
none
final MessageDigestAlgorithm
mda
Constructors Summary
public DigesterOutputStream(MessageDigestAlgorithm mda)

param
mda

	  	 
	   
        this.mda=mda;		
	
Methods Summary
public byte[]getDigestValue()

return
the digest value

         return mda.digest();   
    
public byte[]toByteArray()

inheritDoc

		return none;
	
public voidwrite(byte[] arg0)

inheritDoc

		mda.update(arg0);
	
public voidwrite(int arg0)

inheritDoc

		mda.update((byte)arg0);
	
public voidwrite(byte[] arg0, int arg1, int arg2)

inheritDoc

		mda.update(arg0, arg1, arg2);