ro.isdc.wro.model.resource.util
Class CRC32HashBuilder
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CRC32HashBuilder
public CRC32HashBuilder()
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.