code: public static Document load(File in, String charsetName, String baseUri) throws IOException {
          return parseInputStream(new FileInputStream(in), charsetName, baseUri, Parser.htmlParser());
      }
docs: Loads a file to a Document.
  @param in file to load
  @param charsetName character set of input
  @param baseUri base URI of document, to resolve relative links against
  @return Document
  @throws IOException on IO error