java.io.Serializable, ParserFeedbackpublic class DefaultParserFeedback extends java.lang.Object implements ParserFeedback, java.io.Serializable
ParserFeedback,
FeedbackManager,
Serialized Form| Modifier and Type | Field | Description |
|---|---|---|
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 | Description |
|---|---|
DefaultParserFeedback() |
Construct a NORMAL feedback object.
|
DefaultParserFeedback(int mode) |
Construct a feedback object of the given type.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
public static final int QUIET
public static final int NORMAL
public static final int DEBUG
protected int mMode
DEBUG = 2; NORMAL = 1; QUIET = 0;
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()
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.HTML Parser is an open source library released under LGPL.