Here you can find the source of getDocument(String url)
public static Document getDocument(String url) throws IOException
//package com.java2s; //License from project: LGPL import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class Main { public static int TIME_OUT = 10000; public static Document getDocument(String url) throws IOException { return Jsoup.connect(url).timeout(TIME_OUT).get(); }/* ww w .j av a 2s.c o m*/ }