code: public static Document parse(File in, String charsetName, String baseUri) throws IOException {
          return DataUtil.load(in, charsetName, baseUri);
      }
docs: Parse the contents of a file as HTML.
  
  @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).
  @param baseUri     The URL where the HTML was retrieved from, to resolve relative links against.
  @return sane HTML
  
  @throws IOException if the file could not be found, or read, or if the charsetName is invalid.