com.meterware.httpunit.parsing
Interface HTMLParserListener

All Known Subinterfaces:
HtmlErrorListener

public interface HTMLParserListener

A listener for messages from the HTMLParser. This provides a mechanism to watch for errors and warnings generated during parsing.

Author:
Russell Gold, Benoit Xhenseval

Method Summary
 void error(java.net.URL url, java.lang.String msg, int line, int column)
          Invoked when the parser wishes to report an error.
 void warning(java.net.URL url, java.lang.String msg, int line, int column)
          Invoked when the parser wishes to report a warning.
 

Method Detail

warning

public void warning(java.net.URL url,
                    java.lang.String msg,
                    int line,
                    int column)
Invoked when the parser wishes to report a warning.

Parameters:
url - the location of the document to which the warning applies.
msg - the warning message
line - the line in the document on which the problematic HTML was found
column - the column in the document on which the problematic HTML was found

error

public void error(java.net.URL url,
                  java.lang.String msg,
                  int line,
                  int column)
Invoked when the parser wishes to report an error.

Parameters:
url - the location of the document to which the error applies.
msg - the warning message
line - the line in the document on which the problematic HTML was found
column - the column in the document on which the problematic HTML was found

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.