Package | Description |
---|---|
com.opencsv |
A very simple CSV parser for Java released under a commercial-friendly license.
|
com.opencsv.bean |
A bean binding interface for use with opencsv.
|
com.opencsv.bean.concurrent |
This package collects all classes necessary for the parallel processing of
beans.
|
com.opencsv.bean.validators | |
com.opencsv.validators |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
CSVReaderHeaderAware.readMap()
Reads the next line and returns a map of header values and data values.
|
String[] |
CSVReader.readNext()
Reads the next line from the buffer and converts to a string array.
|
String[] |
CSVReaderHeaderAware.readNext(String... headerNames)
Retrieves a specific data element from a line based on the value of the header.
|
protected void |
CSVReader.validateResult(String[] result,
long lineStartOfRow)
Increments the number of records read if the result passed in is not null.
|
Constructor and Description |
---|
CSVIterator(CSVReader reader) |
Modifier and Type | Method and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
String[] |
SingleLineReader.readNextLine()
Reads from the
CSVReader provided on instantiation until a
usable line of input is found. |
Modifier and Type | Method and Description |
---|---|
void |
StringValidator.validate(String value,
BeanField field)
Performs the validation check on the string and throws an exception if
invalid.
|
void |
MustMatchRegexExpression.validate(String value,
BeanField field) |
Modifier and Type | Method and Description |
---|---|
void |
LineValidatorAggregator.validate(String line)
Runs all LineValidators validate commands and if the string is invalid then it combines all the validation error
messages in a single CsvValidationException.
|
void |
LineValidator.validate(String line)
Performs the validation check on the string and throws an exception if
invalid.
|
void |
RowMustHaveSameNumberOfColumnsAsFirstRowValidator.validate(String[] row) |
void |
RowValidatorAggregator.validate(String[] row)
Runs all
RowValidator s' RowValidator.validate(String[])
methods and if the string array is invalid, then it combines all the
validation error messages in a single CsvValidationException. |
void |
RowFunctionValidator.validate(String[] row) |
void |
RowValidator.validate(String[] row)
Performs the validation check on the row (an array of
String s)
and throws an exception if invalid. |
Copyright © 2005–2023. All rights reserved.