Enable Feedback

If the parser needs to be switched to normal or debug mode, you can do this like so:

      Parser parser =
        new Parser(
          "http://...",
          new DefaultParserFeedback(
           DefaultParserFeedback.NORMAL
          )
        );

      Parser parser =
        new Parser(
          "http://...",
          new DefaultParserFeedback(
           DefaultParserFeedback.DEBUG
          )
        );

    You can also turn the feedback to QUIET mode (none of the events will be triggered), to get extra details. Check BlockFeedback. To handle the feedback yourself, without displaying it to standard output, subclass ParserFeedback, and override info(), warning() and error().

    --SomikRaha

    Last edited on Sunday, February 23, 2003  5:41:24 pm.