Package io.keikai.range
Class SImporters
java.lang.Object
io.keikai.range.SImporters
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic final SImporterGet the default importer which is excel format, and it is smart enough to recognize the format(xls or xlsx)static final SImportergetImporter(String name) Get the registered importerstatic final voidregister(String name, SImporterFactory factory) Register a importer factory by its name which is also used to get it back.
-
Constructor Details
-
SImporters
public SImporters()
-
-
Method Details
-
getImporter
Get the default importer which is excel format, and it is smart enough to recognize the format(xls or xlsx)- Returns:
-
getImporter
Get the registered importer- Parameters:
name-- Returns:
-
register
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
-