|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.glacier.TreeHashGenerator
public class TreeHashGenerator
Utility class for calculating tree hashes.
For more information on tree hashing, see http://en.wikipedia.org/wiki/Hash_tree.
Constructor Summary | |
---|---|
TreeHashGenerator()
|
Method Summary | |
---|---|
static String |
calculateTreeHash(File file)
Calculates a hex encoded binary hash using a tree hashing algorithm for the data in the specified file. |
static String |
calculateTreeHash(InputStream input)
Calculates a hex encoded binary hash using a tree hashing algorithm for the data in the specified input stream. |
static String |
calculateTreeHash(List<byte[]> checksums)
Returns the hex encoded binary tree hash for the individual checksums given. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeHashGenerator()
Method Detail |
---|
public static String calculateTreeHash(File file) throws AmazonClientException
file
- The file containing the data to hash.
AmazonClientException
- If any problems were encountered reading the data or
computing the hash.public static String calculateTreeHash(InputStream input) throws AmazonClientException
input
- The input stream containing the data to hash.
AmazonClientException
- If problems were encountered reading the data or calculating
the hash.public static String calculateTreeHash(List<byte[]> checksums) throws AmazonClientException
AmazonClientException
- If problems were encountered reading the data or calculating
the hash.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |