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 |
ConverterUUID.convertToRead(String value) |
Object |
ConverterCurrency.convertToRead(String value) |
Object |
ConverterNumber.convertToRead(String value) |
Object |
ConverterEnum.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.
|
String |
ConverterCurrency.convertToWrite(Object value)
Converts
Currency instance to a 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 |
ConverterNumber.convertToWrite(Object value)
Formats the number in question according to the pattern that has been
provided.
|
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) |
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.
|
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 |
ConverterLanguageToBoolean.convert(String value)
Converts localized text into a
Boolean . |
protected String |
ConverterLanguageToBoolean.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 © 2005–2023. All rights reserved.