Class ExcelDataExtractor
java.lang.Object
io.jmix.dataimport.extractor.data.impl.ExcelDataExtractor
- All Implemented Interfaces:
ImportedDataExtractor
@Component("datimp_ExcelDataExtractor")
public class ExcelDataExtractor
extends Object
implements ImportedDataExtractor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextract
(ImportConfiguration importConfiguration, byte[] inputData) Parses input data specified as a byte array and creates an instance ofImportedData
.extract
(ImportConfiguration importConfiguration, InputStream inputStream) Parses input data specified as input stream and creates an instance ofImportedData
.protected ImportedData
getImportedData
(org.apache.poi.ss.usermodel.Workbook workbook)
-
Constructor Details
-
ExcelDataExtractor
public ExcelDataExtractor()
-
-
Method Details
-
extract
Description copied from interface:ImportedDataExtractor
Parses input data specified as input stream and creates an instance ofImportedData
.- Specified by:
extract
in interfaceImportedDataExtractor
- Parameters:
importConfiguration
- import configurationinputStream
- input data- Returns:
- an instance of
ImportedData
containing list ofImportedDataItem
with raw values for entity properties
-
extract
Description copied from interface:ImportedDataExtractor
Parses input data specified as a byte array and creates an instance ofImportedData
.- Specified by:
extract
in interfaceImportedDataExtractor
- Parameters:
importConfiguration
- import configurationinputData
- input data- Returns:
- an instance of
ImportedData
containing list ofImportedDataItem
with raw values for entity properties
-
getSupportedDataFormat
- Specified by:
getSupportedDataFormat
in interfaceImportedDataExtractor
- Returns:
- supported format of input data
-
getImportedData
-