Package | Description |
---|---|
com.opencsv.bean |
A bean binding interface for use with opencsv.
|
Modifier and Type | Method and Description |
---|---|
void |
HeaderNameBaseMappingStrategy.captureHeader(CSVReader reader) |
void |
FuzzyMappingStrategy.captureHeader(CSVReader reader) |
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.
|
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[] |
AbstractMappingStrategy.generateHeader(T bean)
This method generates a header that can be used for writing beans of the
type provided back to a file.
|
String[] |
FieldMapByPosition.generateHeader(T bean)
This method generates a header that can be used for writing beans of the
type provided back to a file.
|
String[] |
FieldMap.generateHeader(T bean)
This method generates a header that can be used for writing beans of the
type provided back to a file.
|
String[] |
FieldMapByName.generateHeader(T bean)
This method generates a header that can be used for writing beans of the
type provided back to a file.
|
String[] |
MappingStrategy.generateHeader(T bean)
Implementations of this method must return an array of column headers
based on the contents of the mapping strategy.
|
String[] |
ColumnPositionMappingStrategy.generateHeader(T bean)
This method returns an empty array.
|
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.
|
protected abstract void |
AbstractMappingStrategy.verifyLineLength(int numberOfFields)
Must be called once the length of input for a line/record is known to
verify that the line was complete.
|
void |
HeaderNameBaseMappingStrategy.verifyLineLength(int numberOfFields) |
protected void |
ColumnPositionMappingStrategy.verifyLineLength(int numberOfFields) |
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. |
Copyright © 2005–2023. All rights reserved.