com.myJava.file
Class HashInputStreamListener

java.lang.Object
  extended by com.myJava.file.HashInputStreamListener
All Implemented Interfaces:
InputStreamListener

public class HashInputStreamListener
extends java.lang.Object
implements InputStreamListener


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Constructor Summary
HashInputStreamListener()
           
 
Method Summary
 void close()
           
 byte[] getHash()
           
 void read(byte[] b, int off, int len, int read)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashInputStreamListener

public HashInputStreamListener()
                        throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException
Method Detail

reset

public void reset()
           throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

close

public void close()
Specified by:
close in interface InputStreamListener

read

public void read(byte[] b,
                 int off,
                 int len,
                 int read)
Specified by:
read in interface InputStreamListener

getHash

public byte[] getHash()