]> source.dussan.org Git - poi.git/commitdiff
Add a note about file resources, see bug #56537
authorNick Burch <nick@apache.org>
Wed, 4 Jun 2014 16:34:16 +0000 (16:34 +0000)
committerNick Burch <nick@apache.org>
Wed, 4 Jun 2014 16:34:16 +0000 (16:34 +0000)
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

index a2d487c5e1080c60964546fd5c3c7dae5aa84c2f..eeb24a4eb46786a4f573800dc2786b12b93f6bd3 100644 (file)
@@ -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()) {