[jdom-interest] possible thread issue question

Langel, Richard rick.langel at pioneer.com
Thu Jul 1 15:05:58 PDT 2004


InputSource doesn't have a close() method, at least in 0.9.


-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org]
On Behalf Of David Wall
Sent: Thursday, July 01, 2004 5:03 PM
To: jdom-interest at jdom.org
Subject: Re: [jdom-interest] possible thread issue question


Message public Document makeDocument(String xmlInput) {
  Document rd = null;
  InputSource is = new InputSource(new StringReader(xmlInput));
  SAXBuilder builder = new SAXBuilder();
  rd = builder.build(is);
  return rd;
 }

--
Not positive, but shouldn't you be closing the InputSource to free up
resources, or will the builder.build() method do that somewhere?

David

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@you
rhost.com


This communication is for use by the intended recipient and contains 
information that may be privileged, confidential or copyrighted under
applicable law.  If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited.  Please notify the sender
by return e-mail and delete this e-mail from your system.  Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer.  This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.

 Francais Deutsch Italiano  Espanol  Portugues  Japanese  Chinese  Korean

            http://www.DuPont.com/corp/email_disclaimer.html





More information about the jdom-interest mailing list