Class TreeBuilder
java.lang.Object
com.itextpdf.styledxmlparser.jsoup.parser.TreeBuilder
- Direct Known Subclasses:
HtmlTreeBuilder, XmlTreeBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Elementprotected voidIf the parser is tracking errors, add an error at the current position.protected voidinitialiseParse(Reader input, String baseUri, Parser parser) protected booleanisContentForTagData(String normalName) (An internal method, visible for Element.protected abstract booleanprotected booleanprocessEndTag(String name) protected booleanprocessStartTag(String name) booleanprocessStartTag(String name, Attributes attrs) protected void
-
Field Details
-
parser
-
doc
-
stack
-
baseUri
-
currentToken
-
settings
-
-
Constructor Details
-
TreeBuilder
public TreeBuilder()
-
-
Method Details
-
initialiseParse
-
runParser
protected void runParser() -
process
-
processStartTag
-
processStartTag
-
processEndTag
-
currentElement
-
error
If the parser is tracking errors, add an error at the current position.- Parameters:
msg- error message
-
isContentForTagData
(An internal method, visible for Element. For HTML parse, signals that script and style text should be treated as Data Nodes).
-