[jdom-interest] Protected methods to make private 
    Bradley S. Huffman 
    hip at cs.okstate.edu
       
    Fri Jul  4 10:32:05 PDT 2003
    
    
  
Laurent Bihanic writes:
> Bradley S. Huffman wrote:
> > So what should SAXHandler do? The following
> 
> Yes, maybe with one minor adjustment :
> 
> >     public Document getDocument() {
> >         // Try creating a new document with the content in result list.
> >         Document document = null;
> >         try {
> >             document = factory.document(new Element("bogus"));
> >             document.setContent(result);
> 
> Wouldn't
>                document.setContent(getResult());
> be better to ensure flushCharacters() is being called ?
Yes, it would :)
Brad
    
    
More information about the jdom-interest
mailing list