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 0189b53f7e
commit 7f116f9325
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
*/