|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.dataformat.csv.CsvLineConverters
public final class CsvLineConverters
This CsvLineConverters
class provides common implementations of the CsvLineConverter
interface.
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 file
CsvLineConverter
implementation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |