Java HTML Jsoup Document getDivForClass(Document document, String className)

Here you can find the source of getDivForClass(Document document, String className)

Description

get Div For Class

License

Apache License

Declaration

static Elements getDivForClass(Document document, String className) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

public class Main {
    static Elements getDivForClass(Document document, String className) {
        return document.select("div[id= " + className + "]");
    }/*  ww  w. j  av  a2s. co  m*/
}

Related

  1. emptyDocument()
  2. formatDocument(Document doc)
  3. getAllText(Document document)
  4. getCategoryIds(final Document html)
  5. getContainersForLink(Document document, String link)
  6. getDocument(CloseableHttpClient client, String url)
  7. getDocument(final String url)
  8. getDocument(String url)
  9. getHtmlDocument(String url)