| Package | Description |
|---|---|
| com.opencsv.bean |
A bean binding interface for use with opencsv.
|
| com.opencsv.bean.customconverter |
Custom converters that are generally useful are collected here.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractBeanField.assignValueToField(Object bean,
Object obj,
String header)
Assigns the given object to this field of the destination bean.
|
protected void |
BeanFieldJoin.assignValueToField(Object bean,
Object obj,
String header)
Assigns the value given to the proper field of the bean given.
|
protected Object |
BeanFieldSplit.convert(String value)
This method manages the collection being created as well as splitting the
data.
|
protected abstract Object |
AbstractBeanField.convert(String value)
Method for converting from a string to the proper datatype of the
destination field.
|
protected Object |
BeanFieldSingleValue.convert(String value)
Passes the string to be converted to the converter.
|
Object |
ConverterPrimitiveTypes.convertToRead(String value) |
Object |
ConverterNumber.convertToRead(String value) |
Object |
CsvConverter.convertToRead(String value)
Method for converting from a string to the proper data type of the
destination field.
|
Object |
ConverterDate.convertToRead(String value) |
String |
ConverterPrimitiveTypes.convertToWrite(Object value)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
protected String |
BeanFieldSplit.convertToWrite(Object value)
Manages converting a collection of values into a single string.
|
protected String |
AbstractBeanField.convertToWrite(Object value)
This is the method that actually performs the conversion from field to
string for
AbstractBeanField.write(java.lang.Object, java.lang.Object) and should
be overridden in derived classes. |
String |
CsvConverter.convertToWrite(Object value)
Method for converting from the data type of the destination field to a
string.
|
String |
ConverterDate.convertToWrite(Object value)
This method converts the encapsulated date type to a string, respecting
any locales and conversion patterns that have been set through opencsv
annotations.
|
protected String |
BeanFieldSingleValue.convertToWrite(Object value)
Passes the object to be converted to the converter.
|
String |
AbstractCsvConverter.convertToWrite(Object value)
This implementation simply calls
toString() on value. |
Object[] |
AbstractBeanField.indexAndSplitMultivaluedField(Object value,
I index) |
Object[] |
BeanField.indexAndSplitMultivaluedField(Object value,
I index)
Given the value of a bean field and an index into that value, determine
what values need to be written.
|
Object[] |
BeanFieldJoin.indexAndSplitMultivaluedField(Object value,
I index) |
T |
AbstractMappingStrategy.populateNewBean(String[] line) |
T |
MappingStrategy.populateNewBean(String[] line)
Takes a line of input from a CSV file and creates a bean out of it.
|
protected void |
AbstractMappingStrategy.setFieldValue(Map<Class<?>,Object> beanTree,
String value,
int column)
Populates the field corresponding to the column position indicated of the
bean passed in according to the rules of the mapping strategy.
|
void |
AbstractBeanField.setFieldValue(Object bean,
String value,
String header) |
void |
BeanField.setFieldValue(Object bean,
String value,
String header)
Populates the selected field of the bean.
|
String[] |
AbstractMappingStrategy.transmuteBean(T bean) |
String[] |
MappingStrategy.transmuteBean(T bean)
Transmutes a bean instance into an array of
Strings to be written
to a CSV file. |
void |
StatefulBeanToCsv.write(Iterator<T> iBeans)
Writes an iterator of beans out to the
Writer provided to the
constructor. |
void |
StatefulBeanToCsv.write(List<T> beans)
Writes a list of beans out to the
Writer provided to the
constructor. |
String[] |
AbstractBeanField.write(Object bean,
I index)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
String[] |
BeanField.write(Object bean,
I index)
This method takes the current value of the field in question in the bean
passed in and converts it to one or more strings.
|
void |
StatefulBeanToCsv.write(Stream<T> beans)
Writes a stream of beans out to the
Writer provided to the
constructor. |
void |
StatefulBeanToCsv.write(T bean)
Writes a bean out to the
Writer provided to the
constructor. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
ConvertGermanToBoolean.convert(String value)
Converts German text into a Boolean.
|
protected String |
ConvertGermanToBoolean.convertToWrite(Object value)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
Copyright © 2019. All rights reserved.