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
2dd8bbb3a6
commit
29fc1cc8ff
@ -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
Block a user