Here you can find the source of getJSoupHtmlDocument(final String url)
public static Document getJSoupHtmlDocument(final String url)
//package com.java2s; //License from project: Open Source License import org.jsoup.Connection; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import java.io.IOException; public class Main { public static Document getJSoupHtmlDocument(final String url) { Document result = null;/*from www.j av a2 s. co m*/ try { Connection dom = Jsoup.connect(url); result = dom.get(); } catch (IOException ioe) { System.err.println(ioe.getMessage()); } return result; } }