| 
 | HTML Parser Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.htmlparser.util.DefaultParserFeedback
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.
ParserFeedback, 
FeedbackManager, 
Serialized Form| Field Summary | |
|---|---|
| static int | DEBUGConstructor argument for a debugging feedback. | 
| protected  int | mModeVerbosity level. | 
| static int | NORMALConstructor argument for a normal feedback. | 
| static int | QUIETConstructor 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(String message,
      ParserException exception)Print an error message. | 
|  void | info(String message)Print an info message. | 
|  void | warning(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
IllegalArgumentException - if mode is not
 QUIET, NORMAL or DEBUG.public DefaultParserFeedback()
| Method Detail | 
|---|
public void info(String message)
info in interface ParserFeedbackmessage - The message to print.public void warning(String message)
warning in interface ParserFeedbackmessage - The message to print.
public void error(String message,
                  ParserException exception)
error in interface ParserFeedbackmessage - The message to print.exception - The exception for stack tracing.| 
 | © 2006 Derrick Oswald Sep 17, 2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| HTML Parser is an open source library released under Common Public License. |  |