|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.util.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.
ParserFeedback,
FeedbackManager,
Serialized Form| 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()
Construct a NORMAL feedback object. |
|
DefaultParserFeedback(int mode)
Construct a feedback object of the given type. |
|
| Method Summary | |
void |
error(java.lang.String message,
ParserException exception)
Print an error message. |
void |
info(java.lang.String message)
Print an info message. |
void |
warning(java.lang.String message)
Print an warning message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int QUIET
public static final int NORMAL
public static final int DEBUG
protected int mMode
DEBUG = 2; NORMAL = 1; QUIET = 0;
| Constructor Detail |
public DefaultParserFeedback(int mode)
mode - The type of feedback:
DEBUG - verbose debugging with stack traces NORMAL - normal messages QUIET - no messages
java.lang.IllegalArgumentException - if mode is not
QUIET, NORMAL or DEBUG.public DefaultParserFeedback()
| Method Detail |
public void info(java.lang.String message)
info in interface ParserFeedbackmessage - The message to print.public void warning(java.lang.String message)
warning in interface ParserFeedbackmessage - The message to print.
public void error(java.lang.String message,
ParserException exception)
error in interface ParserFeedbackmessage - The message to print.exception - The exception for stack tracing.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||