Uses of Class
com.opencsv.exceptions.CsvDataTypeMismatchException
Packages that use CsvDataTypeMismatchException
Package
Description
A bean binding interface for use with opencsv.
Custom converters that are generally useful are collected here.
-
Uses of CsvDataTypeMismatchException in com.opencsv.bean
Methods in com.opencsv.bean that throw CsvDataTypeMismatchExceptionModifier and TypeMethodDescriptionprotected 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 abstract Object
Method for converting from a string to the proper datatype of the destination field.protected Object
Passes the string to be converted to the converter.protected Object
This method manages the collection being created as well as splitting the data.ConverterCurrency.convertToRead
(String value) ConverterDate.convertToRead
(String value) ConverterEnum.convertToRead
(String value) ConverterNumber.convertToRead
(String value) ConverterPrimitiveTypes.convertToRead
(String value) ConverterUUID.convertToRead
(String value) CsvConverter.convertToRead
(String value) Method for converting from a string to the proper data type of the destination field.protected String
AbstractBeanField.convertToWrite
(Object value) This is the method that actually performs the conversion from field to string forAbstractBeanField.write(java.lang.Object, java.lang.Object)
and should be overridden in derived classes.AbstractCsvConverter.convertToWrite
(Object value) This implementation simply callstoString()
onvalue
.protected String
BeanFieldSingleValue.convertToWrite
(Object value) Passes the object to be converted to the converter.protected String
BeanFieldSplit.convertToWrite
(Object value) Manages converting a collection of values into a single string.ConverterCurrency.convertToWrite
(Object value) ConvertsCurrency
instance to a 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.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.CsvConverter.convertToWrite
(Object value) Method for converting from the data type of the destination field to a string.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) final void
AbstractBeanField.setFieldValue
(Object bean, String value, String header) 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
BeanField.setFieldValue
(Object bean, String value, String header) Populates the selected field of the bean.final String[]
This method takes the current value of the field in question in the bean passed in and converts it to a string.String[]
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
Writes an iterator of beans out to theWriter
provided to the constructor.void
Writes a list of beans out to theWriter
provided to the constructor.void
Writes a stream of beans out to theWriter
provided to the constructor.void
Writes a bean out to theWriter
provided to the constructor. -
Uses of CsvDataTypeMismatchException in com.opencsv.bean.customconverter
Methods in com.opencsv.bean.customconverter that throw CsvDataTypeMismatchExceptionModifier and TypeMethodDescriptionprotected Object
Converts localized text into aBoolean
.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.