public static Document parse ( File in , String charsetName ) throws IOException { return DataUtil . load ( in , charsetName , in . getAbsolutePath ( ) ) ; }
Parse the contents of a file as HTML . The location of the file is used as the base URI to qualify relative URLs .