/**
  * Resets the deflater. The deflater acts afterwards as if it was just created with the same
  * compression level and strategy as it had before.
  */
 public void reset() {
   state = (noHeader ? BUSY_STATE : INIT_STATE);
   totalOut = 0;
   pending.reset();
   engine.reset();
 }