| Package | Description |
|---|---|
| com.opencsv.bean |
A bean binding interface for use with opencsv.
|
| com.opencsv.bean.concurrent |
This package collects all classes necessary for the parallel processing of
beans.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMappingStrategy<I,K extends Comparable<K>,C extends ComplexFieldMapEntry<I,K,T>,T>
This class collects as many generally useful parts of the implementation
of a mapping strategy as possible.
|
class |
ColumnPositionMappingStrategy<T>
Allows for the mapping of columns with their positions.
|
class |
FuzzyMappingStrategy<T>
A mapping strategy that tries to make the best match between header names
and non-annotated member variables.
|
class |
HeaderColumnNameMappingStrategy<T>
Maps data to objects using the column names in the first row of the CSV file
as reference.
|
class |
HeaderColumnNameTranslateMappingStrategy<T>
Expands on
HeaderColumnNameMappingStrategy by allowing the user to
pass in a map of column names to bean names. |
class |
HeaderNameBaseMappingStrategy<T>
This class serves as a location to collect code common to a mapping strategy
that maps header names to member variables.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CsvToBean.setMappingStrategy(MappingStrategy<? extends T> mappingStrategy)
Sets the mapping strategy to be used by this bean.
|
CsvToBeanBuilder<T> |
CsvToBeanBuilder.withMappingStrategy(MappingStrategy<? extends T> mappingStrategy) |
StatefulBeanToCsvBuilder<T> |
StatefulBeanToCsvBuilder.withMappingStrategy(MappingStrategy<T> mappingStrategy)
Sets the mapping strategy for writing beans to a CSV destination.
|
| Constructor and Description |
|---|
StatefulBeanToCsv(MappingStrategy<T> mappingStrategy,
boolean throwExceptions,
boolean applyQuotesToAll,
ICSVWriter csvWriter,
org.apache.commons.collections4.MultiValuedMap<Class<?>,Field> ignoredFields)
Constructor used to allow building of a
StatefulBeanToCsv
with a user-supplied ICSVWriter class. |
| Modifier and Type | Method and Description |
|---|---|
void |
BeanExecutor.submitBean(long lineNumber,
MappingStrategy<T> mappingStrategy,
T bean,
boolean throwExceptions)
Submit one bean for conversion.
|
void |
LineExecutor.submitLine(long lineNumber,
MappingStrategy<? extends T> mapper,
CsvToBeanFilter filter,
List<BeanVerifier<T>> verifiers,
String[] line,
boolean throwExceptions)
Submit one record for conversion to a bean.
|
| Constructor and Description |
|---|
ProcessCsvBean(long lineNumber,
MappingStrategy<T> mappingStrategy,
T bean,
BlockingQueue<OrderedObject<String[]>> resultantLineQueue,
BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue,
boolean throwExceptions)
The only constructor for creating a line of CSV output out of a bean.
|
ProcessCsvLine(long lineNumber,
MappingStrategy<? extends T> mapper,
CsvToBeanFilter filter,
List<BeanVerifier<T>> verifiers,
String[] line,
BlockingQueue<OrderedObject<T>> resultantBeanQueue,
BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue,
boolean throwExceptions)
The only constructor for creating a bean out of a line of input.
|
Copyright © 2019. All rights reserved.