mirror of https://github.com/apache/poi.git
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:
parent
0189b53f7e
commit
7f116f9325
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue