| com.gargoylesoftware.htmlunit.html.HTMLParserListener
HTMLParserListener | public interface HTMLParserListener (Code) | | Listener for messages from the html parser.
The classification of problems as warnings or errors is the one of the html parser
used by htmlunit. The line and column may indicates the position of the problem detected
by the parser. This is only an indication and in some cases the position where
the problem has to be solved is located lines before.
version: $Revision: 2132 $ author: Marc Guillemot |
Field Summary | |
HTMLParserListener | LOG_REPORTER Simple implementation of
HTMLParserListener logging the received warnings
and errors in the "com.gargoylesoftware.htmlunit.html.HTMLParserListener" log.
Errors are logged at the error level and warnings at the warning level. |
Method Summary | |
void | error(String message, URL url, int line, int column, String key) Called when the html parser reports an error.
Parameters: message - the description of the problem Parameters: url - the url of the document in which the problem occurs Parameters: line - the line of the problem Parameters: column - the column of the problem Parameters: key - the key identifying the "type" of problem. | void | warning(String message, URL url, int line, int column, String key) Called when the html parser reports a warning.
Parameters: message - the description of the problem Parameters: url - the url of the document in which the problem occurs Parameters: line - the line of the problem Parameters: column - the column of the problem Parameters: key - the key identifying the "type" of problem. |
LOG_REPORTER | HTMLParserListener LOG_REPORTER(Code) | | Simple implementation of
HTMLParserListener logging the received warnings
and errors in the "com.gargoylesoftware.htmlunit.html.HTMLParserListener" log.
Errors are logged at the error level and warnings at the warning level.
|
error | void error(String message, URL url, int line, int column, String key)(Code) | | Called when the html parser reports an error.
Parameters: message - the description of the problem Parameters: url - the url of the document in which the problem occurs Parameters: line - the line of the problem Parameters: column - the column of the problem Parameters: key - the key identifying the "type" of problem. May be interesting to filter messages. |
warning | void warning(String message, URL url, int line, int column, String key)(Code) | | Called when the html parser reports a warning.
Parameters: message - the description of the problem Parameters: url - the url of the document in which the problem occurs Parameters: line - the line of the problem Parameters: column - the column of the problem Parameters: key - the key identifying the "type" of problem. May be interesting to filter messages. |
|
|