ro.isdc.wro.model.resource.support.hash
Class CRC32HashStrategy
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALIAS
public static final String ALIAS
- A short name of this hashBuilder.
- See Also:
- Constant Field Values
CRC32HashStrategy
public CRC32HashStrategy()
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.