From 1bcf519c7c8284cd9e855425cb729a5413cf3245 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Wed, 4 Jun 2014 16:34:16 +0000 Subject: [PATCH] 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 --- src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java b/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java index a2d487c5e..eeb24a4eb 100644 --- a/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java +++ b/src/ooxml/java/org/apache/poi/ss/usermodel/WorkbookFactory.java @@ -84,6 +84,8 @@ public class WorkbookFactory { /** * Creates the appropriate HSSFWorkbook / XSSFWorkbook from * the given File, which must exist and be readable. + *

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()) {