Uses of Interface
com.opencsv.bean.exceptionhandler.CsvExceptionHandler
-
Packages that use CsvExceptionHandler 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. -
-
Uses of CsvExceptionHandler in com.opencsv.bean
Fields in com.opencsv.bean declared as CsvExceptionHandler Modifier and Type Field Description private CsvExceptionHandlerCsvToBean. exceptionHandlerDetermines how exceptions thrown during processing will be handled.private CsvExceptionHandlerCsvToBeanBuilder. exceptionHandlerprivate CsvExceptionHandlerStatefulBeanToCsv. exceptionHandlerprivate CsvExceptionHandlerStatefulBeanToCsvBuilder. exceptionHandlerMethods in com.opencsv.bean that return CsvExceptionHandler Modifier and Type Method Description (package private) CsvExceptionHandlerCsvToBean. getExceptionHandler()Package scope method currently used by the CsvToBeanBuilderTestMethods in com.opencsv.bean with parameters of type CsvExceptionHandler Modifier and Type Method Description voidCsvToBean. 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.Constructors in com.opencsv.bean with parameters of type CsvExceptionHandler Constructor Description StatefulBeanToCsv(char escapechar, java.lang.String lineEnd, MappingStrategy<T> mappingStrategy, char quotechar, char separator, CsvExceptionHandler exceptionHandler, java.io.Writer writer, boolean applyQuotesToAll, org.apache.commons.collections4.MultiValuedMap<java.lang.Class<?>,java.lang.reflect.Field> ignoredFields, java.lang.String profile)Constructor used when supplying a Writer instead of a CsvWriter class.StatefulBeanToCsv(MappingStrategy<T> mappingStrategy, CsvExceptionHandler exceptionHandler, boolean applyQuotesToAll, ICSVWriter csvWriter, org.apache.commons.collections4.MultiValuedMap<java.lang.Class<?>,java.lang.reflect.Field> ignoredFields, java.lang.String profile)Constructor used to allow building of aStatefulBeanToCsvwith a user-suppliedICSVWriterclass. -
Uses of CsvExceptionHandler in com.opencsv.bean.concurrent
Fields in com.opencsv.bean.concurrent declared as CsvExceptionHandler Modifier and Type Field Description private CsvExceptionHandlerCompleteFileReader. exceptionHandlerWhether exceptions in processing should be thrown or collected.private CsvExceptionHandlerProcessCsvBean. exceptionHandlerprivate CsvExceptionHandlerProcessCsvLine. exceptionHandlerMethods in com.opencsv.bean.concurrent with parameters of type CsvExceptionHandler Modifier and Type Method Description voidBeanExecutor. submitBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, CsvExceptionHandler exceptionHandler)Submit one bean for conversion.voidLineExecutor. submitLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, java.util.List<BeanVerifier<T>> verifiers, java.lang.String[] line, CsvExceptionHandler exceptionHandler)Submit one record for conversion to a bean.Constructors in com.opencsv.bean.concurrent with parameters of type CsvExceptionHandler Constructor Description CompleteFileReader(CSVReader csvReader, CsvToBeanFilter filter, boolean ignoreEmptyLines, MappingStrategy<? extends T> mappingStrategy, CsvExceptionHandler exceptionHandler, java.util.List<BeanVerifier<T>> verifiers)ProcessCsvBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, java.util.concurrent.BlockingQueue<OrderedObject<java.lang.String[]>> resultantLineQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, java.util.SortedSet<java.lang.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, java.util.List<BeanVerifier<T>> verifiers, java.lang.String[] line, java.util.concurrent.BlockingQueue<OrderedObject<T>> resultantBeanQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, java.util.SortedSet<java.lang.Long> expectedRecords, CsvExceptionHandler exceptionHandler)The only constructor for creating a bean out of a line of input. -
Uses of CsvExceptionHandler in com.opencsv.bean.exceptionhandler
Classes in com.opencsv.bean.exceptionhandler that implement CsvExceptionHandler Modifier and Type Class Description classExceptionHandlerIgnoreAn exception handler that always ignores exceptions raised.classExceptionHandlerIgnoreThenThrowAfterAn exception handler that ignores the first x exceptions, then throws any further exceptions.classExceptionHandlerQueueAn exception handler that always queues exceptions raised.classExceptionHandlerQueueThenThrowAfterAn exception handler that queues the first x exceptions, then throws any further exceptions.classExceptionHandlerThrowAn exception handler that always throws exceptions raised. -
Uses of CsvExceptionHandler in com.opencsv.bean.util
Methods in com.opencsv.bean.util with parameters of type CsvExceptionHandler Modifier and Type Method Description static voidOpencsvUtils. handleException(CsvException e, long lineNumber, CsvExceptionHandler exceptionHandler, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> queue)A function to consolidate code common to handling exceptions thrown during reading or writing of CSV files.
-