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 String
baseUri
protected org.jsoup.parser.Token
currentToken
protected Document
doc
protected ParseErrorList
errors
protected ParseSettings
settings
protected ArrayList<Element>
stack
static String[]
TagsSearchInScope
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Element
currentElement()
protected void
initialiseParse(String input, String baseUri, ParseErrorList errors, ParseSettings settings)
protected boolean
process(org.jsoup.parser.Token token)
protected boolean
processEndTag(String name)
protected boolean
processStartTag(String name)
boolean
processStartTag(String name, Attributes attrs)
protected void
runParser()
String
toString()
-
-
-
Field Detail
-
TagsSearchInScope
public static final String[] TagsSearchInScope
-
doc
protected Document doc
-
baseUri
protected String baseUri
-
currentToken
protected org.jsoup.parser.Token currentToken
-
errors
protected ParseErrorList errors
-
settings
protected ParseSettings settings
-
-
Method Detail
-
process
protected boolean process(org.jsoup.parser.Token token)
-
initialiseParse
protected void initialiseParse(String input, String baseUri, ParseErrorList errors, ParseSettings settings)
-
runParser
protected void runParser()
-
processStartTag
protected boolean processStartTag(String name)
-
processStartTag
public boolean processStartTag(String name, Attributes attrs)
-
processEndTag
protected boolean processEndTag(String name)
-
currentElement
protected Element currentElement()
-
-