Package org.jsoup.parser
Class HtmlTreeBuilder
java.lang.Object
org.jsoup.parser.HtmlTreeBuilder
public class HtmlTreeBuilder extends Object
HTML Tree Builder; creates a DOM from Tokens.
-
Field Summary
Fields Modifier and Type Field Description protected StringbaseUriprotected org.jsoup.parser.TokencurrentTokenprotected Documentdocstatic intMaxScopeSearchDepthprotected Parserparserprotected ParseSettingssettingsprotected ArrayList<Element>stack -
Constructor Summary
Constructors Constructor Description HtmlTreeBuilder() -
Method Summary
Modifier and Type Method Description protected ElementcurrentElement()protected voiderror(String msg)If the parser is tracking errors, and an error at the current position.protected voidinitialiseParse(Reader input, String baseUri, Parser parser)protected booleanprocess(org.jsoup.parser.Token token)protected booleanprocessEndTag(String name)protected booleanprocessStartTag(String name)booleanprocessStartTag(String name, Attributes attrs)protected voidrunParser()StringtoString()
-
Field Details
-
MaxScopeSearchDepth
public static final int MaxScopeSearchDepth- See Also:
- Constant Field Values
-
parser
-
doc
-
stack
-
baseUri
-
currentToken
protected org.jsoup.parser.Token currentToken -
settings
-
-
Constructor Details
-
HtmlTreeBuilder
public HtmlTreeBuilder()
-
-
Method Details
-
initialiseParse
-
process
protected boolean process(org.jsoup.parser.Token token) -
toString
-
runParser
protected void runParser() -
processStartTag
-
processStartTag
-
processEndTag
-
currentElement
-
error
If the parser is tracking errors, and an error at the current position.- Parameters:
msg- error message
-