T - Class to convert the objects to.CsvToBean.iterator() instead.@Deprecated public class IterableCSVToBean<T> extends Object implements Iterable<T>
| Constructor and Description |
|---|
IterableCSVToBean(CSVReader csvReader,
MappingStrategy<T> strategy,
CsvToBeanFilter filter)
Deprecated.
IterableCSVToBean constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected CSVReader |
getCSVReader()
Deprecated.
Retrieves the CSVReader.
|
protected CsvToBeanFilter |
getFilter()
Deprecated.
Retrieves the CsvToBeanFilter
|
protected MappingStrategy<T> |
getStrategy()
Deprecated.
Retrieves the MappingStrategy.
|
Iterator<T> |
iterator()
Deprecated.
|
T |
nextLine()
Deprecated.
Reads and processes a single line.
|
void |
setErrorLocale(Locale errorLocale)
Deprecated.
Sets the locale to be used for error messages.
|
public IterableCSVToBean(CSVReader csvReader, MappingStrategy<T> strategy, CsvToBeanFilter filter)
csvReader - CSVReader. Should not be null.strategy - MappingStrategy used to map CSV data to the bean. Should not be null.filter - Optional CsvToBeanFilter used remove unwanted data from reads.protected MappingStrategy<T> getStrategy()
protected CSVReader getCSVReader()
protected CsvToBeanFilter getFilter()
public T nextLine() throws IllegalAccessException, InstantiationException, IOException, IntrospectionException, InvocationTargetException, CsvRequiredFieldEmptyException
IllegalAccessException - Thrown if there is a failure in introspection.InstantiationException - Thrown when getting the PropertyDescriptor for the class.IOException - Thrown when there is an unexpected error reading the file.IntrospectionException - Thrown if there is a failure in introspection.InvocationTargetException - Thrown if there is a failure in introspection.CsvRequiredFieldEmptyException - If a field is required, but the
header or column position for the field is not present in the inputpublic void setErrorLocale(Locale errorLocale)
errorLocale - The locale to be used for all error messages. If null,
the default locale is used.Copyright © 2019. All rights reserved.