org.htmlparser.util
Class DefaultParserFeedback
- ParserFeedback, Serializable
public class DefaultParserFeedback
Default implementation of the HTMLParserFeedback interface.
This implementation prints output to the console but users
can implement their own classes to support alternate behavior.
static int | DEBUG - Constructor argument for a debugging feedback.
|
static int | NORMAL - Constructor argument for a normal feedback.
|
static int | QUIET - Constructor argument for a quiet feedback.
|
protected int | mMode - Verbosity level.
|
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
public static final int DEBUG
Constructor argument for a debugging feedback.
NORMAL
public static final int NORMAL
Constructor argument for a normal feedback.
QUIET
public static final int QUIET
Constructor argument for a quiet feedback.
mMode
protected int mMode
Verbosity level.
Corresponds to constructor arguments:
DEBUG = 2;
NORMAL = 1;
QUIET = 0;
DefaultParserFeedback
public DefaultParserFeedback()
Construct a NORMAL feedback object.
DefaultParserFeedback
public DefaultParserFeedback(int mode)
Construct a feedback object of the given type.
mode
- The type of feedback:
DEBUG - verbose debugging with stack traces
NORMAL - normal messages
QUIET - no messages
error
public void error(String message,
ParserException exception)
Print an error message.
- error in interface ParserFeedback
message
- The message to print.exception
- The exception for stack tracing.
info
public void info(String message)
Print an info message.
- info in interface ParserFeedback
message
- The message to print.
warning
public void warning(String message)
Print an warning message.
- warning in interface ParserFeedback
message
- The message to print.
| © 2005 Derrick Oswald Mai 08, 2008 |
HTML Parser is an open source library released under LGPL. |  |