mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Add a note about file resources, see bug #56537
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1600326 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4fc7db7cb3
commit
d768645edd
@ -84,6 +84,8 @@ public class WorkbookFactory {
|
||||
/**
|
||||
* Creates the appropriate HSSFWorkbook / XSSFWorkbook from
|
||||
* the given File, which must exist and be readable.
|
||||
* <p>Note that for Workbooks opened this way, it is not possible
|
||||
* to explicitly close the underlying File resource.
|
||||
*/
|
||||
public static Workbook create(File file) throws IOException, InvalidFormatException {
|
||||
if (! file.exists()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user