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()
           
 java.beans.PropertyDescriptor findDescriptor(int col)
          Implementation will have to return a property descriptor from a bean based on the current column.
 

Method Detail

findDescriptor

java.beans.PropertyDescriptor findDescriptor(int col)
                                             throws java.beans.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:
java.beans.IntrospectionException

createBean

T createBean()
             throws java.lang.InstantiationException,
                    java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

captureHeader

void captureHeader(CSVReader reader)
                   throws java.io.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:
java.io.IOException - if parsing fails


Copyright © 2013. All Rights Reserved.