Re: [Htmlparser-developer] Automatic debug output
Brought to you by:
derrickoswald
|
From: Somik R. <so...@ya...> - 2002-12-10 22:32:29
|
Hi Sam,
> Most importantly I seem to get a lot of debug output
> text that I would
> prefer to avoid, see the examples below. Perhaps I'm
> mistaken but this
> seems to be output by default. Is there some way for
> me to avoid getting
> this debug output?
Of course - HTMLParser now takes in a logging object -
HTMLParserFeedback. All you have to do is to implement
this interface and pass your object in to the parser.
If you don't, a DefaultHTMLParserFeedback object is
created - and its function is to send log data to
System.out.
> Also as I was upgrading various parts of the
> software there were
> naturally a few method name changes such as:
>
> HTMLEndTag.getContent() --> HTMLEndTag.getTagName()
>
> since there were no notes in the javadoc I had to
> run the following:
>
> HTMLEndTag x_end_tag =(HTMLEndTag)p_node;
> o_cat.debug("x_end_tag.toString(): " +
> x_end_tag.toString());
> o_cat.debug("x_end_tag.toHTML(): " +
> x_end_tag.toHTML());
> o_cat.debug("x_end_tag.toPlainTextString(): " +
> x_end_tag.toPlainTextString());
> o_cat.debug("x_end_tag.getTagName(): " +
> x_end_tag.getTagName());
> o_cat.debug("x_end_tag.getText(): " +
> x_end_tag.getText());
>
> to determine which of the new method calls would
> give me which kind of
> data. Not such an important point, just a nudge
> about the importance of
> providing method descriptions (ideally with
> examples) for your javadoc :-)
You are right - the javadoc on HTMLEndTag needs to be
updated. Thanks for pointing that out.
Regards,
Somik
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|