Reads a series of bytes from an inputstream and
executes a compression algorithm over those bytes, writing
the compressed data to the specified outputStream.
Reads a series of bytes from compressed data and
executes a decompression algorithm over those bytes, writing
the decompressed data to the specified outputStream.
Tests whether the tree is equal to an Object, where two trees are equal if either both trees are empty,
or both trees contain equal items at the root (tested using the equals method of E),
and have equal left subtrees and equal right subtrees (recursively calling the equals method of BinaryTree.
A class for sequentially accessing collections
The Iterator should initially be pointing before
the first element of the collection, so the
first call to next() returns the first element.