ro.isdc.wro.model.resource.util
Class CRC32HashBuilder

java.lang.Object
  extended by ro.isdc.wro.model.resource.util.CRC32HashBuilder
All Implemented Interfaces:
HashBuilder

public class CRC32HashBuilder
extends Object
implements HashBuilder

Uses CRC32 algorithm for creating fingerprint.

Author:
Alex Objelean

Constructor Summary
CRC32HashBuilder()
           
 
Method Summary
 String getHash(InputStream input)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRC32HashBuilder

public CRC32HashBuilder()
Method Detail

getHash

public String getHash(InputStream input)
               throws IOException

Specified by:
getHash in interface HashBuilder
Parameters:
input - to digest.
Returns:
the hash of the content.
Throws:
IOException - if there was an error during reading the stream content.


Copyright © 2008-2011. All Rights Reserved.