Class WorkbookHandlerFactory

java.lang.Object
chemaxon.formats.documents.jchemexcel.WorkbookHandlerFactory

@PublicAPI public class WorkbookHandlerFactory extends Object
  • Constructor Details

    • WorkbookHandlerFactory

      public WorkbookHandlerFactory()
  • Method Details

    • 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