code: public static void createCDXIndexFile(String urlOrPath)
      throws IOException, java.text.ParseException {
          ARCReader r = ARCReaderFactory.get(urlOrPath);
          r.setStrict(false);
          r.setParseHttpHeaders(true);
          r.setDigest(true);
          output(r, CDX_FILE);
      }
docs: Generate a CDX index file for an ARC file.
  
  @param urlOrPath The ARC file to generate a CDX index for
  @throws IOException
  @throws java.text.ParseException