Package org.apache.poi.hssf.usermodel
Class HSSFWorkbookFactory
- java.lang.Object
-
- org.apache.poi.ss.usermodel.WorkbookFactory
-
- org.apache.poi.hssf.usermodel.HSSFWorkbookFactory
-
@Internal public class HSSFWorkbookFactory extends WorkbookFactory
Helper class which is instantiated by reflection fromWorkbookFactory.create(java.io.File)
and similar
-
-
Constructor Summary
Constructors Constructor Description HSSFWorkbookFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HSSFWorkbook
createWorkbook()
Create a new empty Workbookstatic HSSFWorkbook
createWorkbook(DirectoryNode root)
Creates a HSSFWorkbook from the given DirectoryNodestatic HSSFWorkbook
createWorkbook(POIFSFileSystem fs)
Creates a HSSFWorkbook from the given NPOIFSFileSystem
-
-
-
Method Detail
-
createWorkbook
public static HSSFWorkbook createWorkbook()
Create a new empty Workbook- Returns:
- The created workbook
-
createWorkbook
public static HSSFWorkbook createWorkbook(POIFSFileSystem fs) throws java.io.IOException
Creates a HSSFWorkbook from the given NPOIFSFileSystemNote that in order to properly release resources the Workbook should be closed after use.
- Throws:
java.io.IOException
-
createWorkbook
public static HSSFWorkbook createWorkbook(DirectoryNode root) throws java.io.IOException
Creates a HSSFWorkbook from the given DirectoryNodeNote that in order to properly release resources the Workbook should be closed after use.
- Throws:
java.io.IOException
-
-