|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTMLParserListener
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.
Field Summary | |
---|---|
static 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. |
void |
warning(String message,
URL url,
int line,
int column,
String key)
Called when the html parser reports a warning. |
Field Detail |
---|
static final HTMLParserListener LOG_REPORTER
HTMLParserListener
logging the received warnings
and errors in the "com.gargoylesoftware.htmlunit.html.HTMLParserListener" log.
Method Detail |
---|
void error(String message, URL url, int line, int column, String key)
message
- the description of the problemurl
- the url of the document in which the problem occursline
- the line of the problemcolumn
- the column of the problemkey
- the key identifying the "type" of problem. May be interesting to filter messages.void warning(String message, URL url, int line, int column, String key)
message
- the description of the problemurl
- the url of the document in which the problem occursline
- the line of the problemcolumn
- the column of the problemkey
- the key identifying the "type" of problem. May be interesting to filter messages.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |