Uses of Class
org.jsoup.parser.Parser
Package
Description
Contains the main
Jsoup
class, which provides convenient static access to the jsoup functionality.
Package containing classes supporting the core jsoup code.
HTML document structure nodes.
Contains the HTML parser, tag specifications, and HTML tokeniser.
-
Uses of Parser in org.jsoup
Modifier and TypeMethodDescriptionConnection.Request.parser()
Get the current parser to use when parsing the document.Modifier and TypeMethodDescriptionstatic Document
Parse the contents of a file as HTML.static Document
Jsoup.parse
(InputStream in, @Nullable String charsetName, String baseUri, Parser parser) Read an input stream, and parse it to a Document.static Document
Parse HTML into a Document, using the provided Parser.static Document
Parse HTML into a Document, using the provided Parser.static Document
Parse the contents of a file as HTML.Provide a specific parser to use when parsing the response to a Document.Specify the parser to use when parsing the document. -
Uses of Parser in org.jsoup.helper
Modifier and TypeMethodDescriptionstatic Document
Loads and parses a file to a Document.static Document
DataUtil.load
(InputStream in, @Nullable String charsetName, String baseUri, Parser parser) Parses a Document from an input steam, using the provided Parser.static Document
Loads and parses a file to a Document.static StreamParser
DataUtil.streamParser
(Path path, @Nullable Charset charset, String baseUri, Parser parser) Returns aStreamParser
that will parse the supplied file progressively. -
Uses of Parser in org.jsoup.nodes
Modifier and TypeMethodDescriptionDocument.parser()
Get the parser that was used to parse this document. -
Uses of Parser in org.jsoup.parser
Modifier and TypeFieldDescriptionprotected Parser
TreeBuilder.parser
protected Parser
TreeBuilder.parser
Modifier and TypeMethodDescriptionstatic Parser
Parser.htmlParser()
Create a new HTML parser.Parser.newInstance()
Creates a new Parser as a deep copy of this; including initializing a new TreeBuilder.Parser.settings
(ParseSettings settings) Update the ParseSettings of this Parser, to control the case sensitivity of tags and attributes.Parser.setTrackErrors
(int maxErrors) Enable or disable parse error tracking for the next parse.Parser.setTrackPosition
(boolean trackPosition) Enable or disable source position tracking.Parser.setTreeBuilder
(org.jsoup.parser.TreeBuilder treeBuilder) Update the TreeBuilder used when parsing content.static Parser
Parser.xmlParser()
Create a new XML parser.Modifier and TypeMethodDescriptionprotected void
HtmlTreeBuilder.initialiseParse
(Reader input, String baseUri, Parser parser) protected void
XmlTreeBuilder.initialiseParse
(Reader input, String baseUri, Parser parser) ModifierConstructorDescriptionStreamParser
(Parser parser) Construct a new StreamParser, using the supplied base Parser.