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 voidAbstractBeanField.assignValueToField(Object bean, Object obj, String header) Assigns the given object to this field of the destination bean.protected voidBeanFieldJoin.assignValueToField(Object bean, Object obj, String header) Assigns the value given to the proper field of the bean given.protected abstract ObjectMethod for converting from a string to the proper datatype of the destination field.protected ObjectPasses the string to be converted to the converter.protected ObjectThis 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 StringAbstractBeanField.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 StringBeanFieldSingleValue.convertToWrite(Object value) Passes the object to be converted to the converter.protected StringBeanFieldSplit.convertToWrite(Object value) Manages converting a collection of values into a single string.ConverterCurrency.convertToWrite(Object value) ConvertsCurrencyinstance 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 voidAbstractBeanField.setFieldValue(Object bean, String value, String header) protected voidAbstractMappingStrategy.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.voidBeanField.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.voidWrites an iterator of beans out to theWriterprovided to the constructor.voidWrites a list of beans out to theWriterprovided to the constructor.voidWrites a stream of beans out to theWriterprovided to the constructor.voidWrites a bean out to theWriterprovided to the constructor. -
Uses of CsvDataTypeMismatchException in com.opencsv.bean.customconverter
Methods in com.opencsv.bean.customconverter that throw CsvDataTypeMismatchExceptionModifier and TypeMethodDescriptionprotected ObjectConverts localized text into aBoolean.protected StringConverterLanguageToBoolean.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.