Package io.keikai.range
Class SImporters
- java.lang.Object
-
- io.keikai.range.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 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(String name)
Get the registered importerstatic void
register(String name, SImporterFactory factory)
Register a importer factory by its name which is also used to get it back.
-
-
-
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 itfactory
- the importer factory you want to register
-
-