Package org.htmlunit.html.parser
Class SimpleHTMLParserListener
java.lang.Object
org.htmlunit.html.parser.SimpleHTMLParserListener
- All Implemented Interfaces:
HTMLParserListener
Simple implementation of
Errors are logged at the error level and warnings at the warning level.
HTMLParserListener
logging the received warnings
and errors in the "org.htmlunit.html.HTMLParserListener" log.Errors are logged at the error level and warnings at the warning level.
-
Field Summary
FieldsFields inherited from interface org.htmlunit.html.parser.HTMLParserListener
LOG_REPORTER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the HTML parser reports an error.private static String
void
Called when the HTML parser reports a warning.
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
SimpleHTMLParserListener
SimpleHTMLParserListener()
-
-
Method Details
-
error
Description copied from interface:HTMLParserListener
Called when the HTML parser reports an error.- Specified by:
error
in interfaceHTMLParserListener
- Parameters:
message
- the description of the problemurl
- the URL of the document in which the problem occurshtml
- the content of the snippet in which the problem occursline
- the line of the problemcolumn
- the column of the problemkey
- the key identifying the "type" of problem
-
warning
Description copied from interface:HTMLParserListener
Called when the HTML parser reports a warning.- Specified by:
warning
in interfaceHTMLParserListener
- Parameters:
message
- the description of the problemurl
- the URL of the document in which the problem occurshtml
- the content of the snippet in which the problem occursline
- the line of the problemcolumn
- the column of the problemkey
- the key identifying the "type" of problem
-
format
-