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 |
---|---|
void |
MappingStrategy.captureHeader(CSVReader reader)
Implementation of this method can grab the header line before parsing
begins to use to map columns to bean properties.
|
void |
HeaderColumnNameMappingStrategy.captureHeader(CSVReader reader) |
protected abstract Object |
AbstractBeanField.convert(String value)
Method for converting from a string to the proper datatype of the
destination field.
|
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. |
T |
IterableCSVToBean.nextLine()
Reads and processes a single line.
|
protected T |
CsvToBean.processLine(MappingStrategy<T> mapper,
String[] line)
Creates a single object from a line from the CSV file.
|
void |
MappingStrategy.registerEndOfRecordForReading()
Must be called at the end of input for a line/record to verify that the
line was complete.
|
void |
HeaderColumnNameMappingStrategy.registerEndOfRecordForReading() |
<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 |
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.