Class SImporters


  • public class SImporters
    extends Object
    This class contains utility methods to register the importer factory and get a importer by registered name.
    Since:
    3.5.0
    Author:
    dennis
    • Constructor Detail

      • SImporters

        public SImporters()
    • Method Detail

      • getImporter

        public static final SImporter getImporter()
        Get the default importer which is excel format, and it is smart enough to recognize the format(xls or xlsx)
        Returns:
      • getImporter

        public static final SImporter getImporter​(String name)
        Get the registered importer
        Parameters:
        name -
        Returns:
      • register

        public static final void register​(String name,
                                          SImporterFactory factory)
        Register a importer factory by its name which is also used to get it back.
        Parameters:
        name - name of the importer factory which is used to get it
        factory - the importer factory you want to register