Here you can find the source of getDoc(File file)
public static Document getDoc(File file)
//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 getDoc(File file) { Document result = null;//from ww w. j a v a 2 s. co m try { result = Jsoup.parse(file, "UTF-8"); } catch (Exception e) { e.printStackTrace(); } return result; } }