[jdom-interest] Thread questions regarding JDOM SAXBuiler?

Jason Hunter jhunter at xquery.com
Fri Sep 3 11:23:21 PDT 2004


Laurent Bihanic wrote:
> David Wall wrote:
> 
>> By why this comment in the javadocs:
>>
>> public void setReuseParser(boolean reuseParser)
>>   Specifies whether this builder shall reuse the same SAX parser when
>> performing subsequent parses or allocate a new parser for each parse. The
>> default value of this setting is true (parser reuse). Setting the 
>> value to
>> false can result in a performance improvement when parsing large 
>> numbers of
>> files in sequence.
> 
> 
> I don't know. It was not present in the initial version (b9).
> 
> Jason, any idea why the last sentence was added?
> 
> Laurent

This is basically a typo, and I'll fix it right now.  Here's the history...

It was added in r1.77 when it said "The default value of this setting is 
<code>false</code> (no parser reuse).  Setting the value to 
<code>true</code> can result in a performance improvement when parsing
large numbers of files in sequence."

Then in r1.78 I changed the defalult to true, and changed the values in 
<code> from false/true to true/false.  But the second sentence should 
have been flat out removed.  Sorry for the miss.

-jh-



More information about the jdom-interest mailing list