Top Description Fields Constructors Methods
com.opencsv.bean.concurrent

public Class BeanExecutor<T>

extends IntolerantThreadPoolExecutor<String[]>
Class Inheritance
Type Parameters
<T>
The type of the bean being converted
Imports
com.opencsv.bean.MappingStrategy, com.opencsv.bean.exceptionhandler.CsvExceptionHandler, java.util.Locale

A specific derivative of IntolerantThreadPoolExecutor intended for submitting beans to be converted to java.lang.Strings for writing.
Author
Andrew Rucker Jones
Since
5.0

Field Summary

Inherited from com.opencsv.bean.concurrent.IntolerantThreadPoolExecutor:
accumulateThreaderrorLocaleexpectedRecordsresultQueuethrownExceptionsQueue

Constructor Summary

AccessConstructor and Description
public
BeanExecutor(boolean
Whether order should be preserved in the results
orderedResults
,
Locale
The locale to use for error messages
errorLocale
)

The only constructor available for this class.

Method Summary

Modifier and TypeMethod and Description
public void
submitBean(long
Which record in the output file is being processed
lineNumber
,
MappingStrategy<T>
The mapping strategy to be used
mappingStrategy
,
T
The bean to be transformed into a line of output
bean
,
CsvExceptionHandler
The handler for exceptions thrown during record processing
exceptionHandler
)

Submit one bean for conversion.

Inherited from com.opencsv.bean.concurrent.IntolerantThreadPoolExecutor:
afterExecutecharacteristicscheckExceptionscompleteestimateSizegetCapturedExceptionsgetTerminalExceptionprepareshutdownNowtryAdvancetrySplit

Constructor Detail

BeanExecutorback to summary
public BeanExecutor(boolean orderedResults, Locale errorLocale)

The only constructor available for this class.

Parameters
orderedResults:boolean

Whether order should be preserved in the results

errorLocale:Locale

The locale to use for error messages

Method Detail

submitBeanback to summary
public void submitBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, CsvExceptionHandler exceptionHandler)

Submit one bean for conversion.

Parameters
lineNumber:long

Which record in the output file is being processed

mappingStrategy:MappingStrategy<T>

The mapping strategy to be used

bean:T

The bean to be transformed into a line of output

exceptionHandler:CsvExceptionHandler

The handler for exceptions thrown during record processing