poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56537] Using org.apache.poi.ss.usermodel.WorkbookFactory.create(File) leaks file handles
Date Thu, 12 Jun 2014 19:18:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56537

--- Comment #10 from Daniel Atallah <daniel_atallah@yahoo.com> ---
(In reply to Nick Burch from comment #9)
> There's nothing stopping you opening one NPOIFSFileSystem or OPCPackage from
> a file, then re-using that to open multiple Workbook instances that you then
> change + save elsewhere.
> 
> That said, in that case you'd probably be creating the low level object
> first, then passing that to the Workbook, so you would presumably be
> handling the close explicitly yourself

Aha, that makes sense.  Now that you mention it, the javadoc changes to
XSSFWorkbook make it clear that you can do that.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message