Package | Description |
---|---|
org.jsoup |
Contains the main
Jsoup class, which provides convenient static access to the jsoup functionality. |
org.jsoup.helper |
Package containing classes supporting the core jsoup code.
|
org.jsoup.nodes |
HTML document structure nodes.
|
org.jsoup.parser |
Contains the HTML parser, tag specifications, and HTML tokeniser.
|
Modifier and Type | Method and Description |
---|---|
Parser |
Connection.Request.parser()
Get the current parser to use when parsing the document.
|
Modifier and Type | Method and Description |
---|---|
static Document |
Jsoup.parse(java.io.File file,
java.lang.String charsetName,
java.lang.String baseUri,
Parser parser)
Parse the contents of a file as HTML.
|
static Document |
Jsoup.parse(java.io.InputStream in,
java.lang.String charsetName,
java.lang.String baseUri,
Parser parser)
Read an input stream, and parse it to a Document.
|
static Document |
Jsoup.parse(java.lang.String html,
Parser parser)
Parse HTML into a Document, using the provided Parser.
|
static Document |
Jsoup.parse(java.lang.String html,
java.lang.String baseUri,
Parser parser)
Parse HTML into a Document, using the provided Parser.
|
Connection |
Connection.parser(Parser parser)
Provide an alternate parser to use when parsing the response to a Document.
|
Connection.Request |
Connection.Request.parser(Parser parser)
Specify the parser to use when parsing the document.
|
Modifier and Type | Field and Description |
---|---|
private Parser |
HttpConnection.Request.parser |
Modifier and Type | Method and Description |
---|---|
Parser |
HttpConnection.Request.parser() |
Modifier and Type | Method and Description |
---|---|
static Document |
DataUtil.load(java.io.File file,
java.lang.String charsetName,
java.lang.String baseUri,
Parser parser)
Loads and parses a file to a Document.
|
static Document |
DataUtil.load(java.io.InputStream in,
java.lang.String charsetName,
java.lang.String baseUri,
Parser parser)
Parses a Document from an input steam, using the provided Parser.
|
(package private) static Document |
DataUtil.parseInputStream(java.io.InputStream input,
java.lang.String charsetName,
java.lang.String baseUri,
Parser parser) |
Connection |
HttpConnection.parser(Parser parser) |
HttpConnection.Request |
HttpConnection.Request.parser(Parser parser) |
Modifier and Type | Field and Description |
---|---|
private Parser |
Document.parser |
Modifier and Type | Method and Description |
---|---|
Parser |
Document.parser()
Get the parser that was used to parse this document.
|
(package private) static Parser |
NodeUtils.parser(Node node)
Get the parser that was used to make this node, or the default HTML parser if it has no parent.
|
Modifier and Type | Method and Description |
---|---|
Document |
Document.parser(Parser parser)
Set the parser used to create this document.
|
Modifier and Type | Field and Description |
---|---|
protected Parser |
TreeBuilder.parser |
Modifier and Type | Method and Description |
---|---|
static Parser |
Parser.htmlParser()
Create a new HTML parser.
|
Parser |
Parser.newInstance()
Creates a new Parser as a deep copy of this; including initializing a new TreeBuilder.
|
Parser |
Parser.settings(ParseSettings settings)
Update the ParseSettings of this Parser, to control the case sensitivity of tags and attributes.
|
Parser |
Parser.setTrackErrors(int maxErrors)
Enable or disable parse error tracking for the next parse.
|
Parser |
Parser.setTrackPosition(boolean trackPosition)
Enable or disable source position tracking.
|
Parser |
Parser.setTreeBuilder(TreeBuilder treeBuilder)
Update the TreeBuilder used when parsing content.
|
static Parser |
Parser.xmlParser()
Create a new XML parser.
|
Modifier and Type | Method and Description |
---|---|
protected void |
XmlTreeBuilder.initialiseParse(java.io.Reader input,
java.lang.String baseUri,
Parser parser) |
protected void |
HtmlTreeBuilder.initialiseParse(java.io.Reader input,
java.lang.String baseUri,
Parser parser) |
protected void |
TreeBuilder.initialiseParse(java.io.Reader input,
java.lang.String baseUri,
Parser parser) |
(package private) Document |
TreeBuilder.parse(java.io.Reader input,
java.lang.String baseUri,
Parser parser) |
(package private) java.util.List<Node> |
XmlTreeBuilder.parseFragment(java.lang.String inputFragment,
Element context,
java.lang.String baseUri,
Parser parser) |
(package private) java.util.List<Node> |
HtmlTreeBuilder.parseFragment(java.lang.String inputFragment,
Element context,
java.lang.String baseUri,
Parser parser) |
(package private) abstract java.util.List<Node> |
TreeBuilder.parseFragment(java.lang.String inputFragment,
Element context,
java.lang.String baseUri,
Parser parser) |
(package private) java.util.List<Node> |
XmlTreeBuilder.parseFragment(java.lang.String inputFragment,
java.lang.String baseUri,
Parser parser) |
Constructor and Description |
---|
Parser(Parser copy) |