Add a NPOIFS constructor to WorkbookFactory, to match the regular POIFS one

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1212976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2011-12-11 08:16:32 +00:00
parent 2dd8bbb3a6
commit 29fc1cc8ff
1 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,12 @@ public class WorkbookFactory {
public static Workbook create(POIFSFileSystem fs) throws IOException {
return new HSSFWorkbook(fs);
}
/**
* Creates an HSSFWorkbook from the given NPOIFSFileSystem
*/
public static Workbook create(NPOIFSFileSystem fs) throws IOException {
return new HSSFWorkbook(fs.getRoot(), true);
}
/**
* Creates an XSSFWorkbook from the given OOXML Package
*/