140141142143144145146147148149150
} } if(this.current<HuffmanOutputStream.blocksize){ // consider also EOF! heap.add(new HeapEntry(1, new EndOfFile())); } // combine in each iteration those entries with the lowest weights while(heap.size()>1){ HeapEntry a = heap.pop();