public class CSVMapBinder extends Object
Map Binder class.
Simple CSV to Object Map binding class.
Exmaple usage:
public class PeopleBinder {
// Create and cache the binder instance..
private CSVMapBinder binder = new CSVMapBinder("firstname,lastname,gender,age,country", Person.class, "firstname");
public Map<String, Person> bind(Reader csvStream) {
return binder.bind(csvStream);
}
}
| Constructor and Description |
|---|
CSVMapBinder(String fields,
Class recordType,
String keyField) |
Copyright © 2020. All rights reserved.