Class CsvDataExtractor
java.lang.Object
io.jmix.dataimport.extractor.data.impl.CsvDataExtractor
- All Implemented Interfaces:
ImportedDataExtractor
@Component("datimp_CsvDataExtractor")
public class CsvDataExtractor
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
(com.opencsv.CSVReader csvReader)
-
Constructor Details
-
CsvDataExtractor
public CsvDataExtractor()
-
-
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
-