code: public static boolean replaceEntries(final File zip, final ZipEntrySource[] entries) {
      return operateInPlace(zip, new InPlaceAction() {
        public boolean act(File tmpFile) {
          return replaceEntries(zip, entries, tmpFile);
        }
      });
    }
docs: Changes an existing ZIP file: replaces a given entry in it.
  
  @param zip
  an existing ZIP file.
  @param entries
  new ZIP entries to be replaced with.
  @return <code>true</code> if at least one entry was replaced.