| 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.exceptions |
This package contains all of the exceptions specific to opencsv.
|
| Modifier and Type | Method and Description |
|---|---|
List<String[]> |
CSVReader.readAll()
Reads the entire file into a List with each element being a String[] of
tokens.
|
| Modifier and Type | Method and Description |
|---|---|
List<CsvException> |
StatefulBeanToCsv.getCapturedExceptions()
Any exceptions captured during writing of beans to a CSV destination can
be retrieved through this method.
|
List<CsvException> |
CsvToBean.getCapturedExceptions()
Returns the list of all exceptions that would have been thrown during the
import, but were suppressed by setting
CsvToBean.throwExceptions to
false. |
| Constructor and Description |
|---|
ProcessCsvBean(long lineNumber,
MappingStrategy<T> mappingStrategy,
T bean,
BlockingQueue<OrderedObject<String[]>> resultantLineQueue,
BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue,
boolean throwExceptions)
The only constructor for creating a line of CSV output out of a bean.
|
ProcessCsvLine(long lineNumber,
MappingStrategy<? extends T> mapper,
CsvToBeanFilter filter,
List<BeanVerifier<T>> verifiers,
String[] line,
BlockingQueue<OrderedObject<T>> resultantBeanQueue,
BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue,
boolean throwExceptions)
The only constructor for creating a bean out of a line of input.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CsvConstraintViolationException
This exception is thrown when logical connections between data fields would
be violated by the imported data.
|
class |
CsvDataTypeMismatchException
This exception should be thrown when the provided string value for conversion
cannot be converted to the required type of the destination field.
|
class |
CsvRequiredFieldEmptyException
This exception should be thrown when a field marked as required is empty in
the CSV file.
|
class |
CsvValidationException
Exception thrown by a LineValidator or LineValidatorAggregator when a single line is invalid.
|
Copyright © 2019. All rights reserved.