Class SImporters


  • public class SImporters
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      SImporters()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SImporter getImporter()
      Get the default importer which is excel format, and it is smart enough to recognize the format(xls or xlsx)
      static SImporter getImporter​(java.lang.String name)
      Get the registered importer
      static void register​(java.lang.String name, SImporterFactory factory)
      Register a importer factory by its name which is also used to get it back.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String name)
        Get the registered importer
        Parameters:
        name -
        Returns:
      • register

        public static final void register​(java.lang.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