ro.isdc.wro.model.resource.support.hash
Class CRC32HashStrategy

java.lang.Object
  extended by ro.isdc.wro.model.resource.support.hash.CRC32HashStrategy
All Implemented Interfaces:
HashBuilder, HashStrategy

public class CRC32HashStrategy
extends Object
implements HashStrategy

Uses CRC32 algorithm for creating fingerprint.

Since:
1.4.7
Author:
Alex Objelean

Field Summary
static String ALIAS
          A short name of this hashBuilder.
 
Constructor Summary
CRC32HashStrategy()
           
 
Method Summary
 String getHash(InputStream input)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS

public static final String ALIAS
A short name of this hashBuilder.

See Also:
Constant Field Values
Constructor Detail

CRC32HashStrategy

public CRC32HashStrategy()
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-2013. All Rights Reserved.