Java HTML Jsoup Document getJSoupHtmlDocument(final String url)

Here you can find the source of getJSoupHtmlDocument(final String url)

Description

get J Soup Html Document

License

Open Source License

Declaration

public static Document getJSoupHtmlDocument(final String url) 

Method Source Code

//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;
    }
}

Related

  1. getDocument(final String url)
  2. getDocument(String url)
  3. getHtmlDocument(String url)
  4. getIcon(Document doc)
  5. getInfoboxLines(final Document html, final boolean stripColor)
  6. getJSoupXmlDocument(final String url)
  7. getLoginFields(Document doc)
  8. getTextFromAvailableDivID(Document doc, String divID)
  9. getTitleFromDocument(Document doc)