org.htmlparser.util
public class DefaultParserFeedback extends Object implements ParserFeedback, Serializable
See Also: ParserFeedback FeedbackManager
| Field Summary | |
|---|---|
| static int | DEBUG
Constructor argument for a debugging feedback. |
| protected int | mMode
Verbosity level.
|
| static int | NORMAL
Constructor argument for a normal feedback. |
| static int | QUIET
Constructor argument for a quiet feedback. |
| Constructor Summary | |
|---|---|
| DefaultParserFeedback(int mode)
Construct a feedback object of the given type. | |
| DefaultParserFeedback()
Construct a NORMAL feedback object. | |
| Method Summary | |
|---|---|
| void | error(String message, ParserException exception)
Print an error message. |
| void | info(String message)
Print an info message. |
| void | warning(String message)
Print an warning message. |
DEBUG = 2; NORMAL = 1; QUIET = 0;
Parameters: mode The type of feedback:
DEBUG - verbose debugging with stack traces
NORMAL - normal messages
QUIET - no messages
Throws: IllegalArgumentException if mode is not QUIET, NORMAL or DEBUG.
Parameters: message The message to print. exception The exception for stack tracing.
Parameters: message The message to print.
Parameters: message The message to print.
| HTML Parser is an open source library released under LGPL. | |