Here you can find the source of getHtmlDocument(String url)
public static Document getHtmlDocument(String url) throws Exception
//package com.java2s; //License from project: Apache License import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Main { public static Document getHtmlDocument(String url) throws Exception { Document doc = Jsoup.connect(url).get(); return doc; }//ww w . j a v a 2 s . c om }