Here you can find the source of parseFile(String filePath)
public static Document parseFile(String filePath) throws Exception
//package com.java2s; //License from project: Open Source License import java.io.File; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Main { public static Document parseFile(String filePath) throws Exception { File inputFile = new File(filePath); return Jsoup.parse(inputFile, "UTF-8"); }/*from w ww. j ava2s . co m*/ }