#31 VTDGenHuge.parseFile() leaves the InputStream open

v1.0 (example)
closed-fixed
nobody
5
2013-07-30
2012-11-14
Uri Shohet
No

After parsing an XML file with VTDGenHuge.parseFile(), the FileInputStream seems to remain open. I need to delete the XML file, but File.delete() fails.
I've looked at the code of com.ximpleware.extended.XMLBuffer#readFile, where the FileInputStream is open, but couldn't find any code that closes it.

Maybe I'm missing something, please correct me if I'm wrong.

Regards,

Uri

Discussion

  • jimmy zhang

    jimmy zhang - 2012-11-21
    • status: open --> pending
     
  • jimmy zhang

    jimmy zhang - 2012-11-21

    ok, I agree with u that file should be closed, will fix that in the next release.

     
  • jimmy zhang

    jimmy zhang - 2012-11-21

    on a second thought, as extended vtd used memory mapping, it would be infeasible to assume that file needs to be clsosed,

     
  • jimmy zhang

    jimmy zhang - 2013-07-30
    • status: pending --> closed-fixed
    • Group: --> v1.0 (example)