code: public static void repack(InputStream is, File dstZip, int compressionLevel) {
  
      log.debug("Repacking from input stream into '{}'.", dstZip);
  
      RepackZipEntryCallback callback = new RepackZipEntryCallback(dstZip, compressionLevel);
  
      try {
        iterate(is, callback);
      }
      finally {
        callback.closeStream();
      }
    }
docs: Repacks a provided ZIP input stream into a ZIP file with a given compression level.
  <p>
  
  @param is
  ZIP input stream.
  @param dstZip
  destination ZIP file.
  @param compressionLevel
  compression level.