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
e1000f257e
commit
1bcf519c7c
@ -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…
Reference in New Issue
Block a user