code: public static Document parse(File in, String charsetName) throws IOException {
          return DataUtil.load(in, charsetName, in.getAbsolutePath());
      }
docs: Parse the contents of a file as HTML. The location of the file is used as the base URI to qualify relative URLs.
  
  @param in          file to load HTML from
  @param charsetName (optional) character set of file contents. Set to {@code null} to determine from {@code http-equiv} meta tag, if
  present, or fall back to {@code UTF-8} (which is often safe to do).
  @return sane HTML
  
  @throws IOException if the file could not be found, or read, or if the charsetName is invalid.
  @see #parse(File, String, String)