Class HSSFWorkbookFactory

    • Constructor Detail

      • HSSFWorkbookFactory

        public HSSFWorkbookFactory()
    • 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 NPOIFSFileSystem

        Note 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 DirectoryNode

        Note that in order to properly release resources the Workbook should be closed after use.

        Throws:
        java.io.IOException