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 Object |
BeanFieldPrimitiveTypes.convert(String value) |
protected Object |
BeanFieldDate.convert(String value) |
protected abstract Object |
AbstractBeanField.convert(String value)
Method for converting from a string to the proper datatype of the
destination field.
|
protected String |
BeanFieldPrimitiveTypes.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 |
BeanFieldDate.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 |
AbstractBeanField.convertToWrite(Object value)
This is the method that actually performs the conversion from field to
string for
AbstractBeanField.write(java.lang.Object) and should be overridden in
derived classes. |
protected T |
CsvToBean.processLine(MappingStrategy<T> mapper,
String[] line)
Creates a single object from a line from the CSV file.
|
<T> void |
BeanField.setFieldValue(T bean,
String value)
Populates the selected field of the bean.
|
<T> void |
AbstractBeanField.setFieldValue(T bean,
String value) |
void |
StatefulBeanToCsv.write(List<T> beans)
Writes a list 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. |
String |
BeanField.write(T bean)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
String |
AbstractBeanField.write(T bean)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
ConvertSplitOnWhitespace.convert(String value)
Takes a string that is a list of substrings separated by whitespace and
returns a list of the substrings.
|
protected Object |
ConvertGermanToBooleanRequired.convert(String value)
Deprecated.
|
protected Object |
ConvertGermanToBoolean.convert(String value)
Converts German text into a Boolean.
|
protected String |
ConvertSplitOnWhitespace.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 |
ConvertGermanToBooleanRequired.convertToWrite(Object value)
Deprecated.
|
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 © 2017. All rights reserved.