The first line of the input should be the list of the properties that will be found in the input stream's records. Each subsequent line represents one object's property values.
Sample Input for a simple class (Employee):
lastName,firstName,employeeNum,hourlyWage John,Henry,1,12.50 Willaby,Wallaby,2,9.75 George,Washington,5,20.00
or...
// Java code String[] array = new String[] { "lastName,firstName,employeeNum,hourlyWage", "John,Henry,1,12.50", "Willaby,Wallaby,2,9.75", "George,Washington,5,20.00", };
Using the utility is straightforward:
Object[] objects = CsvObjectLoader.load(Employee.class, array);
Voila...