code: public static void addOrReplaceEntries(final File zip, final ZipEntrySource[] entries) {
      operateInPlace(zip, new InPlaceAction() {
        public boolean act(File tmpFile) {
          addOrReplaceEntries(zip, entries, tmpFile);
          return true;
        }
      });
    }
docs: Changes a ZIP file: adds/replaces the given entries in it.
  
  @param zip
  an existing ZIP file (only read).
  @param entries
  ZIP entries to be replaced or added.