private void init ( ) throws IOException { bsPutUByte ( ' ' ) ; bsPutUByte ( ' ' ) ; this . data = new Data ( this . blockSize100k ) ; this . blockSorter = new BlockSort ( this . data ) ; // huffmanised magic bytes bsPutUByte ( ' ' ) ; bsPutUByte ( ' ' + this . blockSize100k ) ; this . combinedCRC = 0 ; initBlock ( ) ; }
Writes magic bytes like BZ on the first position of the stream and bytes indiciating the file - format which is huffmanised followed by a digit indicating blockSize100k .