Interface | Description |
---|---|
BeanField<T> |
Used to extend the
Field class to include
functionality that opencsv requires. |
CsvToBeanFilter |
Here's an example showing how to use
CsvToBean with a column
name mapping and line filtering. |
MappingStrategy<T> |
The interface for the classes that handle translating between the columns in
the CSV file to an actual object.
|
Class | Description |
---|---|
AbstractBeanField<T> |
This base bean takes over the responsibility of converting the supplied
string to the proper type for the destination field and setting the
destination field.
|
AbstractCSVToBean |
Converts CSV data to objects.
|
BeanFieldDate<T> |
This class converts an input to a date type.
|
BeanFieldPrimitiveTypes<T> |
This class wraps fields from the reflection API in order to handle
translation of primitive types and to add a "required" flag.
|
BeanToCsv<T> | Deprecated
Please use the much easier and more powerful
StatefulBeanToCsv . |
ColumnPositionMappingStrategy<T> |
Allows for the mapping of columns with their positions.
|
CsvToBean<T> |
Converts CSV data to objects.
|
CsvToBeanBuilder<T> |
This class makes it possible to bypass all the intermediate steps and classes
in setting up to read from a CSV source to a list of beans.
|
HeaderColumnNameMappingStrategy<T> |
Maps data to objects using the column names in the first row of the CSV file
as reference.
|
HeaderColumnNameTranslateMappingStrategy<T> |
Expands on HeaderColumnNameMappingStrategy by allowing the user to pass in a
map of column names to bean names.
|
IterableCSVToBean<T> |
Converts CSV strings to objects.
|
IterableCSVToBeanBuilder<T> |
Builder for creating an IterableCSVToBean.
|
MappingUtils |
This class is meant to be a collection of general purpose static methods
useful in processing mapping strategies.
|
StatefulBeanToCsv<T> |
This class writes beans out in CSV format to a
Writer ,
keeping state information and making an intelligent guess at the mapping
strategy to be applied. |
StatefulBeanToCsvBuilder<T> |
This is a builder for StatefulBeanToCsv, allowing one to set all parameters
necessary for writing a CSV file.
|
Annotation Type | Description |
---|---|
CsvBind | Deprecated
This annotation was replaced in version 3.8 by the more flexible
CsvBindByName , CsvBindByPosition ,
CsvCustomBindByName , and CsvCustomBindByPosition . |
CsvBindByName |
Specifies a binding between a column name of the CSV input and a field in a
bean.
|
CsvBindByPosition |
Specifies a binding between a column number of the CSV input and a field in
a bean.
|
CsvCustomBindByName |
Allows us to specify a class that will perform the translation from source
to destination.
|
CsvCustomBindByPosition |
Allows us to specify a class that will perform the translation from source
to destination.
|
CsvDate |
This annotation indicates that the destination field is an expression of time.
|
Copyright © 2017. All rights reserved.