[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-user
Subject:    Re: Reusing Xerces parsers after Exception
From:       Michael Glavassevich <mrglavas () apache ! org>
Date:       2010-10-03 11:20:37
Message-ID: alpine.BSF.2.00.1010031116260.29571 () minotaur ! apache ! org
[Download RAW message or body]

Hi Philip,

Yes, it's safe to reuse instances of Xerces parsers after they've thrown 
an exception. When you call the parse method they reset their internal 
state before starting to process the document.

Thanks.

On Thu, 30 Sep 2010, philip.arickx@emc.com wrote:

> Hi,
> 
>  
> 
> When implementing a Xerces parser pool, I?m faced with the following
> question : if a parser has thrown an exception during parsing, is it safe to
> reuse the parser afterwards, i.e. add it back to the pool ?
> 
>  
> 
> Does anybody have any experience with this ?
> 
>  
> 
> Thanx !
> 
> Philip

---------------------------
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic