public interface MappingStrategy<T>
| Modifier and Type | Method and Description |
|---|---|
void |
captureHeader(CSVReader reader)
Implementation of this method can grab the header line before parsing begins to use to map columns
to bean properties.
|
T |
createBean() |
java.beans.PropertyDescriptor |
findDescriptor(int col)
Implementation will have to return a property descriptor from a bean based on the current column.
|
java.beans.PropertyDescriptor findDescriptor(int col)
throws java.beans.IntrospectionException
col - the column to find the description forjava.beans.IntrospectionExceptionT createBean() throws java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionvoid captureHeader(CSVReader reader) throws java.io.IOException
reader - the CSVReader to use for header parsingjava.io.IOException - if parsing fails