This method computes the tree hash used by glacier. It reads the whole stream and then resets the
position of the stream back to the beginning.
Parameters
- stream (Stream)
- The stream to read and compute the tree hash for.
Return Value
The tree hash that can be used to set the the Checksum property.