[EMAIL PROTECTED] wrote:

> I've been using a slightly simpler method than Craig's to get the body
> content. I use this:
>
> digester.addCallMethod("database/user/text", "setText", 0);
>
> I got the idea for this from the JavaDoc comment for addCallMethod, which
> says that specifying zero for the parameter count means "a single parameter
> from the body of this element".
>
> I don't know if there's any practical difference, other than being one line
> of code instead of two. :-)
>

50% reduction in code length, without compromising readability, is usually a good
thing :-).

Actually, I had not scrolled down far enough in the sources, while answering the
previous message, to remember that I had added this short cut.

Craig


Reply via email to