Class LagartoDOMBuilder
java.lang.Object
jodd.lagarto.dom.LagartoDOMBuilder
- All Implemented Interfaces:
DOMBuilder
Lagarto DOM builder creates DOM tree from HTML, XHTML or XML content.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfigure(Consumer<LagartoDomBuilderConfig> configConsumer) Configures this DOM parser.Disables debug mode.Enables debug mode.Enables HTML5 parsing mode.Enableshtml modewith additional and somewhat experimental rules.Enables XHTML mode.Enables XML parsing mode.Returnsconfigurationof the DOM parser.Returnsconfigurationof the internalLagartoParser.parse(char[] content) Creates DOM tree from provided content.parse(CharSequence content) Creates DOM tree from the provided content.protected DocumentparseWithLagarto(LagartoParser lagartoParser) Parses the content using provided lagarto parser.
-
Field Details
-
config
-
-
Constructor Details
-
LagartoDOMBuilder
public LagartoDOMBuilder() -
LagartoDOMBuilder
-
-
Method Details
-
getConfig
Returnsconfigurationof the DOM parser. -
getParserConfig
Returnsconfigurationof the internalLagartoParser. -
configure
Configures this DOM parser. -
enableDebug
Enables debug mode. Performances are lost. -
disableDebug
Disables debug mode. -
enableHtmlPlusMode
Enableshtml modewith additional and somewhat experimental rules. -
enableHtmlMode
Enables HTML5 parsing mode. -
enableXhtmlMode
Enables XHTML mode. -
enableXmlMode
Enables XML parsing mode. -
parse
Creates DOM tree from provided content.- Specified by:
parsein interfaceDOMBuilder
-
parse
Creates DOM tree from the provided content.- Specified by:
parsein interfaceDOMBuilder
-
parseWithLagarto
Parses the content using provided lagarto parser.
-