Package com.opencsv.bean.concurrent
Class ProcessCsvBean<T>
- java.lang.Object
-
- com.opencsv.bean.concurrent.ProcessCsvBean<T>
-
- Type Parameters:
T
- The type of the bean to be processed
- All Implemented Interfaces:
java.lang.Runnable
public class ProcessCsvBean<T> extends java.lang.Object implements java.lang.Runnable
A class for converting one bean into its string representation for writing to an output.- Since:
- 4.0
- Author:
- Andrew Rucker Jones
-
-
Constructor Summary
Constructors Constructor Description ProcessCsvBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, java.util.concurrent.BlockingQueue<OrderedObject<java.lang.String[]>> resultantLineQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, boolean throwExceptions)
The only constructor for creating a line of CSV output out of a bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Constructor Detail
-
ProcessCsvBean
public ProcessCsvBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, java.util.concurrent.BlockingQueue<OrderedObject<java.lang.String[]>> resultantLineQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, boolean throwExceptions)
The only constructor for creating a line of CSV output out of a bean.- Parameters:
lineNumber
- Which record in the output file is being processedmappingStrategy
- The mapping strategy to be usedbean
- The bean to be transformed into a line of outputresultantLineQueue
- A queue in which to place the line createdthrownExceptionsQueue
- A queue in which to place a thrown exception, if one is thrownthrowExceptions
- Whether exceptions should be thrown or captured for later processing
-
-