code: private static boolean doEntryEquals(ZipFile zf1, ZipFile zf2, String path1, String path2) throws IOException {
      InputStream is1 = null;
      InputStream is2 = null;
      try {
        ZipEntry e1 = zf1.getEntry(path1);
        ZipEntry e2 = zf2.getEntry(path2);
  
        if (e1 == null && e2 == null) {
          return true;
        }
  
        if (e1 == null || e2 == null) {
          return false;
        }
  
        is1 = zf1.getInputStream(e1);
        is2 = zf2.getInputStream(e2);
        if (is1 == null && is2 == null) {
          return true;
        }
        if (is1 == null || is2 == null) {
          return false;
        }
  
        return IOUtils.contentEquals(is1, is2);
      }
      finally {
        IOUtils.closeQuietly(is1);
        IOUtils.closeQuietly(is2);
      }
    }
docs: Compares two ZIP entries (byte-by-byte). .
  
  @param zf1
  first ZIP file.
  @param zf2
  second ZIP file.
  @param path1
  name of the first entry.
  @param path2
  name of the second entry.
  @return <code>true</code> if the contents of the entries were same.