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() |
PropertyDescriptor |
findDescriptor(int col)
Implementation will have to return a property descriptor from a bean based on the current column.
|
PropertyDescriptor findDescriptor(int col) throws IntrospectionException
col
- the column to find the description forIntrospectionException
T createBean() throws InstantiationException, IllegalAccessException
void captureHeader(CSVReader reader) throws IOException
reader
- the CSVReader to use for header parsingIOException
- if parsing failsCopyright © 2019. All rights reserved.