Class WorkbookHandlerFactory

    • Constructor Detail

      • WorkbookHandlerFactory

        public WorkbookHandlerFactory()
    • Method Detail

      • createWorkbookReader

        public static IWorkbookReader createWorkbookReader​(String filePath)
                                                    throws Exception
        Creates an Xlsx document reader object, which will read from the file given in the filepath parameter.
        Parameters:
        filePath - the path of the file from where the xlsx document should be read
        Returns:
        the document reader object which implements the IWorkbookReader interface
        Throws:
        Exception
      • createWorkbookReader

        public static IWorkbookReader createWorkbookReader​(InputStream inputStream)
                                                    throws Exception
        Creates an Xlsx document reader object, which will read from the stream given in the inputStream parameter
        Parameters:
        inputStream - the input stream from where the document should be read
        Returns:
        the document reader object which implements the IWorkbookReader interface
        Throws:
        Exception