public final class CsvLineConverters extends Object
CsvLineConverters class provides common implementations of the CsvLineConverter interface.| Modifier and Type | Method and Description |
|---|---|
static CsvLineConverter<List<String>> |
getListConverter()
Provides an implementation of
CsvLineConverter that converts a line into a List. |
static CsvLineConverter<Map<String,String>> |
getMapLineConverter(String[] headers)
Provides an implementation of
CsvLineConverter that converts a line into a Map. |
public static CsvLineConverter<List<String>> getListConverter()
CsvLineConverter that converts a line into a List.CsvLineConverter implementationpublic static CsvLineConverter<Map<String,String>> getMapLineConverter(String[] headers)
CsvLineConverter that converts a line into a Map.
It requires to have unique headers values as well as the same number of item in each line.headers - Headers of the CSV fileCsvLineConverter implementationApache Camel