Package | Description |
---|---|
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.exceptionhandler |
This package contains the interface and standard implementations for
exception handling logic during bean creation and bean writing.
|
com.opencsv.bean.util |
This is a package of utility classes for internal use.
|
Modifier and Type | Method and Description |
---|---|
void |
CsvToBean.setExceptionHandler(CsvExceptionHandler handler)
Sets the handler for recoverable exceptions raised during processing of
records.
|
CsvToBeanBuilder<T> |
CsvToBeanBuilder.withExceptionHandler(CsvExceptionHandler exceptionHandler)
Sets the handler for recoverable exceptions raised during processing of
records.
|
StatefulBeanToCsvBuilder<T> |
StatefulBeanToCsvBuilder.withExceptionHandler(CsvExceptionHandler exceptionHandler)
Sets the handler for recoverable exceptions raised during processing of
records.
|
Constructor and Description |
---|
StatefulBeanToCsv(MappingStrategy<T> mappingStrategy,
CsvExceptionHandler exceptionHandler,
boolean applyQuotesToAll,
ICSVWriter csvWriter,
org.apache.commons.collections4.MultiValuedMap<Class<?>,Field> ignoredFields,
String profile)
Constructor used to allow building of a
StatefulBeanToCsv
with a user-supplied ICSVWriter class. |
Modifier and Type | Method and Description |
---|---|
void |
BeanExecutor.submitBean(long lineNumber,
MappingStrategy<T> mappingStrategy,
T bean,
CsvExceptionHandler exceptionHandler)
Submit one bean for conversion.
|
void |
LineExecutor.submitLine(long lineNumber,
MappingStrategy<? extends T> mapper,
CsvToBeanFilter filter,
List<BeanVerifier<T>> verifiers,
String[] line,
CsvExceptionHandler exceptionHandler)
Submit one record for conversion to a bean.
|
Constructor and Description |
---|
CompleteFileReader(CSVReader csvReader,
CsvToBeanFilter filter,
boolean ignoreEmptyLines,
MappingStrategy<? extends T> mappingStrategy,
CsvExceptionHandler exceptionHandler,
List<BeanVerifier<T>> verifiers) |
ProcessCsvBean(long lineNumber,
MappingStrategy<T> mappingStrategy,
T bean,
BlockingQueue<OrderedObject<String[]>> resultantLineQueue,
BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue,
SortedSet<Long> expectedRecords,
CsvExceptionHandler exceptionHandler)
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,
SortedSet<Long> expectedRecords,
CsvExceptionHandler exceptionHandler)
The only constructor for creating a bean out of a line of input.
|
Modifier and Type | Class and Description |
---|---|
class |
ExceptionHandlerIgnore
An exception handler that always ignores exceptions raised.
|
class |
ExceptionHandlerIgnoreThenThrowAfter
An exception handler that ignores the first x exceptions, then throws any
further exceptions.
|
class |
ExceptionHandlerQueue
An exception handler that always queues exceptions raised.
|
class |
ExceptionHandlerQueueThenThrowAfter
An exception handler that queues the first x exceptions, then throws any
further exceptions.
|
class |
ExceptionHandlerThrow
An exception handler that always throws exceptions raised.
|
Modifier and Type | Method and Description |
---|---|
static void |
OpencsvUtils.handleException(CsvException e,
long lineNumber,
CsvExceptionHandler exceptionHandler,
BlockingQueue<OrderedObject<CsvException>> queue)
A function to consolidate code common to handling exceptions thrown
during reading or writing of CSV files.
|
Copyright © 2005–2023. All rights reserved.