code: public void checkHtmlFile(File file, boolean asUTF8) throws IOException,
              SAXException {
          validator.reset();
          InputSource is = new InputSource(new FileInputStream(file));
          is.setSystemId(file.toURI().toURL().toString());
          if (asUTF8) {
              is.setEncoding("UTF-8");
          }
          checkAsHTML(is);
      }
docs: /* *
  Checks a text/html HTML document.