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.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.
|
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 queued by the exception handler.
|
Constructor and Description |
---|
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 | Method and Description |
---|---|
CsvException |
ExceptionHandlerQueue.handleException(CsvException e) |
CsvException |
ExceptionHandlerIgnoreThenThrowAfter.handleException(CsvException e) |
CsvException |
ExceptionHandlerQueueThenThrowAfter.handleException(CsvException e) |
CsvException |
ExceptionHandlerIgnore.handleException(CsvException e) |
CsvException |
ExceptionHandlerThrow.handleException(CsvException e) |
CsvException |
CsvExceptionHandler.handleException(CsvException e)
Determines how opencsv will handle exceptions that crop up during
bean creation or writing.
|
Modifier and Type | Method and Description |
---|---|
CsvException |
ExceptionHandlerQueue.handleException(CsvException e) |
CsvException |
ExceptionHandlerIgnoreThenThrowAfter.handleException(CsvException e) |
CsvException |
ExceptionHandlerQueueThenThrowAfter.handleException(CsvException e) |
CsvException |
ExceptionHandlerIgnore.handleException(CsvException e) |
CsvException |
ExceptionHandlerThrow.handleException(CsvException e) |
CsvException |
CsvExceptionHandler.handleException(CsvException e)
Determines how opencsv will handle exceptions that crop up during
bean creation or writing.
|
Modifier and Type | Method and Description |
---|---|
CsvException |
ExceptionHandlerIgnoreThenThrowAfter.handleException(CsvException e) |
CsvException |
ExceptionHandlerQueueThenThrowAfter.handleException(CsvException e) |
CsvException |
ExceptionHandlerThrow.handleException(CsvException e) |
CsvException |
CsvExceptionHandler.handleException(CsvException e)
Determines how opencsv will handle exceptions that crop up during
bean creation or writing.
|
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.
|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
CsvChainedException
An exception class for collecting multiple exceptions.
|
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 |
CsvFieldAssignmentException
Superclass for checked exceptions that can be thrown while trying to decode
and assign a single 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 © 2005–2023. All rights reserved.