public class ColumnPositionMappingStrategy<T> extends HeaderColumnNameMappingStrategy<T>
descriptorMap, header, type
Constructor and Description |
---|
ColumnPositionMappingStrategy() |
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.
|
String[] |
getColumnMapping() |
protected String |
getColumnName(int col) |
void |
setColumnMapping(String[] columnMapping) |
createBean, findDescriptor, findDescriptor, getType, loadDescriptorMap, matches, setType
public void captureHeader(CSVReader reader) throws IOException
MappingStrategy
captureHeader
in interface MappingStrategy<T>
captureHeader
in class HeaderColumnNameMappingStrategy<T>
reader
- the CSVReader to use for header parsingIOException
- if parsing failsprotected String getColumnName(int col)
getColumnName
in class HeaderColumnNameMappingStrategy<T>
public String[] getColumnMapping()
public void setColumnMapping(String[] columnMapping)
Copyright © 2019. All rights reserved.