> +import com.google.common.io.ByteStreams;
> +import com.google.common.primitives.Bytes;
> +
> +/**
> + * Calculates the linear hash and the tree hash of the payload.
> + */
> +public class TreeHasher {
> +
> + private static int CHUNK_SIZE = 1024 * 1024;
> +
> + private final Payload payload;
> + private HashCode hash;
> + private HashCode treeHash;
> +
> + public TreeHasher(Payload payload) throws IOException {
> + this.payload = payload;
If we keep the current way of calculating, is there any reason to retain a
reference to the payload?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/11/files#r13790664