T
- The type of bean being createdpublic class CompleteFileReader<T> extends SingleLineReader implements Runnable
LineExecutor
.csvReader, ignoreEmptyLines, line
Constructor and Description |
---|
CompleteFileReader(CSVReader csvReader,
CsvToBeanFilter filter,
boolean ignoreEmptyLines,
MappingStrategy<? extends T> mappingStrategy,
CsvExceptionHandler exceptionHandler,
List<BeanVerifier<T>> verifiers) |
Modifier and Type | Method and Description |
---|---|
long |
getLineProcessed() |
Throwable |
getTerminalException() |
void |
run()
Runs a nice, tight loop to simply read input and submit for conversion.
|
void |
setExecutor(LineExecutor<T> executor)
Sets the executor that will convert text input to bean output.
|
getLine, getLinesRead, readNextLine
public CompleteFileReader(CSVReader csvReader, CsvToBeanFilter filter, boolean ignoreEmptyLines, MappingStrategy<? extends T> mappingStrategy, CsvExceptionHandler exceptionHandler, List<BeanVerifier<T>> verifiers)
csvReader
- The CSVReader
from which input is readfilter
- Filter to be applied to the inputignoreEmptyLines
- Whether empty lines of input should be ignoredmappingStrategy
- The mapping strategy in useexceptionHandler
- Determines the exception handling behaviorverifiers
- Verifiers to be applied to the beans createdpublic Throwable getTerminalException()
public long getLineProcessed()
public void setExecutor(LineExecutor<T> executor)
executor
- The executor to useCopyright © 2005–2023. All rights reserved.