[jdom-interest] Protected methods to make private

Bradley S. Huffman hip at csa.cs.okstate.edu
Thu Jun 26 08:06:12 PDT 2003


Laurent Bihanic writes:

> Jason Hunter wrote:
> > Yep, that's the right history of why it's there.  Must we keep it?  It 
> > seems like an odd duck method where subclasses could have real problems 
> > if we change our SAXHandler implementation design in the future.  Could 
> > an XMLFilter or something suffice?  What kind of whitespace stripping do 
> > people want to do that we don't currently provide?
> 
> AFAIK, JDOM does not provide any kind of whitespace stripping at building 
> time. Stripping whitespaces in SAXHandler can be a good performance boost for
> highly indented documents.

FWIW, I have 3 SAX filters for dealing with ws on input (trim, normalize,
and trim full white) that I need to finish and test.  After that they can
be thrown in contrib. I also have one for buffering text that I want to see
if it's slower. same, or faster than doing it in SAXHandler. Just need time :)

Brad



More information about the jdom-interest mailing list