|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsoup.parser.Parser
public class Parser
Parses HTML into a Document
. Generally best to use one of the more convenient parse methods in Jsoup
.
Method Summary | |
---|---|
static Document |
parse(String html,
String baseUri)
Parse HTML into a Document. |
static Document |
parseBodyFragment(String bodyHtml,
String baseUri)
Parse a fragment of HTML into the body of a Document. |
static Document |
parseBodyFragmentRelaxed(String bodyHtml,
String baseUri)
Parse a fragment of HTML into the body of a Document, with relaxed parsing enabled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Document parse(String html, String baseUri)
html
- HTML to parsebaseUri
- base URI of document (i.e. original fetch location), for resolving relative URLs.
public static Document parseBodyFragment(String bodyHtml, String baseUri)
body
of a Document.
bodyHtml
- fragment of HTMLbaseUri
- base URI of document (i.e. original fetch location), for resolving relative URLs.
public static Document parseBodyFragmentRelaxed(String bodyHtml, String baseUri)
body
of a Document, with relaxed parsing enabled. Relaxed, in this
context, means that implicit tags are not automatically created when missing.
bodyHtml
- fragment of HTMLbaseUri
- base URI of document (i.e. original fetch location), for resolving relative URLs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |