Package org.htmlparser.util
Class DefaultParserFeedback
java.lang.Object
org.htmlparser.util.DefaultParserFeedback
- All Implemented Interfaces:
Serializable
,ParserFeedback
Default implementation of the HTMLParserFeedback interface.
This implementation prints output to the console but users
can implement their own classes to support alternate behavior.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a NORMAL feedback object.DefaultParserFeedback
(int mode) Construct a feedback object of the given type. -
Method Summary
-
Field Details
-
QUIET
public static final int QUIETConstructor argument for a quiet feedback.- See Also:
-
NORMAL
public static final int NORMALConstructor argument for a normal feedback.- See Also:
-
DEBUG
public static final int DEBUGConstructor argument for a debugging feedback.- See Also:
-
mMode
protected int mModeVerbosity level. Corresponds to constructor arguments:DEBUG = 2; NORMAL = 1; QUIET = 0;
-
-
Constructor Details
-
DefaultParserFeedback
public DefaultParserFeedback(int mode) Construct a feedback object of the given type.- 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.
-
DefaultParserFeedback
public DefaultParserFeedback()Construct a NORMAL feedback object.
-
-
Method Details
-
info
Print an info message.- Specified by:
info
in interfaceParserFeedback
- Parameters:
message
- The message to print.
-
warning
Print an warning message.- Specified by:
warning
in interfaceParserFeedback
- Parameters:
message
- The message to print.
-
error
Print an error message.- Specified by:
error
in interfaceParserFeedback
- Parameters:
message
- The message to print.exception
- The exception for stack tracing.
-