PhpWiki - Enable Feedback
Description: 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 <i>info()</i>, <i>warning()</i> and <i>error()</i>.
Keywords: Enable Feedback, PhpWiki

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

| Page Execution took 0.249 seconds