[jdom-interest] Protected methods to make private

Laurent Bihanic laurent.bihanic at atosorigin.com
Thu Jun 26 08:20:24 PDT 2003


Bradley S. Huffman wrote:
> Is there some reason we cann't get rid of JDOMResult.FragmentHandler and
> put the methods getResult and clearResult in SAXHandler?

SAXHandler was not designed to cope this document fragments. Mixing SAXHandler 
with document fragment supports leads to ugly code (like using a dummy root 
element).
Thus, I don't think it's a good idea to merge FragmentHandler's code unless 
there's a real need to generalize document fragment support.

Laurent




More information about the jdom-interest mailing list