au.com.bytecode.opencsv.bean
Interface MappingStrategy<T>

All Known Implementing Classes:
ColumnPositionMappingStrategy, HeaderColumnNameMappingStrategy, HeaderColumnNameTranslateMappingStrategy

public interface MappingStrategy<T>


Method Summary
 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.
 

Method Detail

findDescriptor

PropertyDescriptor findDescriptor(int col)
                                  throws IntrospectionException
Implementation will have to return a property descriptor from a bean based on the current column.

Parameters:
col - the column to find the description for
Returns:
the related PropertyDescriptor
Throws:
IntrospectionException

createBean

T createBean()
             throws InstantiationException,
                    IllegalAccessException
Throws:
InstantiationException
IllegalAccessException

captureHeader

void captureHeader(CSVReader reader)
                   throws IOException
Implementation of this method can grab the header line before parsing begins to use to map columns to bean properties.

Parameters:
reader - the CSVReader to use for header parsing
Throws:
IOException - if parsing fails


Copyright © 2012. All Rights Reserved.