[jdom-interest] possible thread issue question

David Wall d.wall at computer.org
Thu Jul 1 15:03:23 PDT 2004


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




More information about the jdom-interest mailing list