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