Uses of Class
org.jsoup.parser.Parser
Packages that use 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 DocumentParse the contents of a file as HTML.static DocumentJsoup.parse(InputStream in, String charsetName, String baseUri, Parser parser) Read an input stream, and parse it to a Document.static DocumentParse HTML into a Document, using the provided Parser.static DocumentParse HTML into a Document, using the provided Parser.static DocumentParse 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
Fields in org.jsoup.helper declared as ParserMethods in org.jsoup.helper that return ParserMethods in org.jsoup.helper with parameters of type ParserModifier and TypeMethodDescription(package private) static DataUtil.CharsetDocDataUtil.detectCharset(ControllableInputStream input, String charsetName, String baseUri, Parser parser) Detects charset for a regular parse, and may reuse a fully sniffed document.private static DataUtil.CharsetDocDataUtil.detectCharset(ControllableInputStream input, String charsetName, String baseUri, Parser parser, boolean reuseDocIfFullyRead) Shared charset detection worker; regular parse can reuse a fully sniffed doc, stream parse cannot.(package private) static DataUtil.CharsetDocDataUtil.detectCharsetForStreamParser(ControllableInputStream input, String charsetName, String baseUri, Parser parser) Detects charset for a stream parse, and leaves the input readable for subsequent parsing.static DocumentLoads and parses a file to a Document.static DocumentDataUtil.load(InputStream in, String charsetName, String baseUri, Parser parser) Parses a Document from an input steam, using the provided Parser.static DocumentLoads and parses a file to a Document.(package private) static DocumentDataUtil.parseInputStream(DataUtil.CharsetDoc charsetDoc, String baseUri, Parser parser) (package private) static DocumentDataUtil.parseInputStream(ControllableInputStream input, String charsetName, String baseUri, Parser parser) static StreamParserDataUtil.streamParser(Path path, Charset charset, String baseUri, Parser parser) Returns aStreamParserthat will parse the supplied file progressively. -
Uses of Parser in org.jsoup.nodes
Fields in org.jsoup.nodes declared as ParserMethods in org.jsoup.nodes that return ParserModifier and TypeMethodDescriptionDocument.parser()Get the parser that was used to parse this document.(package private) static ParserGet the parser that was used to make this node, or the default HTML parser if it has no parent.Methods in org.jsoup.nodes with parameters of type ParserModifier and TypeMethodDescriptionSet the parser used to create this document.Constructors in org.jsoup.nodes with parameters of type Parser -
Uses of Parser in org.jsoup.parser
Fields in org.jsoup.parser declared as ParserModifier and TypeFieldDescriptionprivate final ParserStreamParser.parserprotected ParserTreeBuilder.parserMethods in org.jsoup.parser that return ParserModifier and TypeMethodDescriptionParser.clone()static ParserParser.htmlParser()Create a new HTML parser.Parser.newInstance()Creates a new Parser as a deep copy of this; including initializing a new TreeBuilder.Parser.setMaxDepth(int maxDepth) Set the parser's maximum stack depth (maximum number of open elements).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.Set a custom TagSet to use for this Parser.static ParserParser.xmlParser()Create a new XML parser.Methods in org.jsoup.parser with parameters of type ParserModifier and TypeMethodDescriptionprotected voidHtmlTreeBuilder.initialiseParse(Reader input, String baseUri, Parser parser) (package private) voidTreeBuilder.initialiseParse(Reader input, String baseUri, Parser parser) protected voidXmlTreeBuilder.initialiseParse(Reader input, String baseUri, Parser parser) (package private) DocumentTreeBuilder.parseFragment(Reader inputFragment, Element context, String baseUri, Parser parser) Constructors in org.jsoup.parser with parameters of type ParserModifierConstructorDescriptionprivateStreamParser(Parser parser) Construct a new StreamParser, using the supplied base Parser.