Do you need the "CH" in the 1st 2 bytes of your header? You'd only want to run: java My211zip c h <infile> <outfile> on a <infile> which is compressed, so you already know, without looking at the header of <infile> (which would, as you say, contain "CH" in the 1st 2 bytes of its header), that <infile> is compressed.
But no big difference in the big scheme of things. Unless space is at a premium, the above point is just a small thing to consider. |