// store in current block
this.block[this.current]=(byte)b;
this.current++;
if(this.current==HuffmanOutputStream.blocksize){
// one block is complete!
Node root = this.buildHuffmanTree();
// encode huffeman tree and the block by using the built huffman tree
encode(root);
this.current=0;
}
}