com.cedarsoft.utils.crypt
Class ResourceHashCalculator
java.lang.Object
com.cedarsoft.utils.crypt.ResourceHashCalculator
public class ResourceHashCalculator
- extends java.lang.Object
Calculates the hashs of resources
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceHashCalculator
public ResourceHashCalculator()
calculate
@NotNull
public Hash calculate(@NotNull
Algorithm algorithm,
@NotNull
java.net.URL resource)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public Hash calculate(@NotNull
Algorithm algorithm,
@NotNull
java.io.InputStream resource)
throws java.io.IOException
- Throws:
java.io.IOException
calculate
@NotNull
public Hash calculate(@NotNull
Algorithm algorithm,
@NotNull
byte[] resource)
throws java.io.IOException
- Throws:
java.io.IOException
calculateSHA1
@Deprecated
@NotNull
public Hash calculateSHA1(@NotNull
java.io.InputStream resource)
throws java.io.IOException
- Deprecated.
- Throws:
java.io.IOException
calculateMD5
@Deprecated
@NotNull
public Hash calculateMD5(@NotNull
java.io.InputStream resource)
throws java.io.IOException
- Deprecated.
- Throws:
java.io.IOException
Copyright © 2009 cedarsoft GmbH. All Rights Reserved.