LineExecutor.
| Modifier and Type | Field and Description |
|---|---|
| private final CsvExceptionHandler | exceptionHandler
Whether exceptions in processing should be thrown or collected. |
| private LineExecutor | executor
The executor that takes lines of input and converts them to beans. |
| private final CsvToBeanFilter | filter
Filter to be applied to the input. |
| private long | lineProcessed
Counts how many records have been read from the input. |
| private final MappingStrategy | mappingStrategy
The mapping strategy in use. |
| private Throwable | terminalException
The exception that brought execution to a grinding halt. |
| private final List | verifiers
Verifiers to be applied to the beans created. |
| Access | Constructor and Description |
|---|---|
| public | CompleteFileReader(CSVReader
The csvReader, CsvToBeanFilter CSVReader from which input is readFilter to be applied to the input filter, boolean Whether empty lines of input should be ignored ignoreEmptyLines, MappingStrategy<? extends T> The mapping strategy in use mappingStrategy, CsvExceptionHandler Determines the exception handling behavior exceptionHandler, List<BeanVerifier<T>> Verifiers to be applied to the beans created verifiers)
|
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public Throwable | |
| public void | run()
Implements java. Runs a nice, tight loop to simply read input and submit for conversion. |
| public void | setExecutor(LineExecutor<T>
The executor to use executor)Sets the executor that will convert text input to bean output. |
| exceptionHandler | back to summary |
|---|---|
| private final CsvExceptionHandler exceptionHandler Whether exceptions in processing should be thrown or collected. | |
| executor | back to summary |
|---|---|
| private LineExecutor<T> executor The executor that takes lines of input and converts them to beans. | |
| filter | back to summary |
|---|---|
| private final CsvToBeanFilter filter Filter to be applied to the input. | |
| lineProcessed | back to summary |
|---|---|
| private long lineProcessed Counts how many records have been read from the input. | |
| mappingStrategy | back to summary |
|---|---|
| private final MappingStrategy<? extends T> mappingStrategy The mapping strategy in use. | |
| terminalException | back to summary |
|---|---|
| private Throwable terminalException The exception that brought execution to a grinding halt. | |
| verifiers | back to summary |
|---|---|
| private final List<BeanVerifier<T>> verifiers Verifiers to be applied to the beans created. | |
| CompleteFileReader | back to summary |
|---|---|
public CompleteFileReader(CSVReader csvReader, CsvToBeanFilter filter, boolean ignoreEmptyLines, MappingStrategy<? extends T> mappingStrategy, CsvExceptionHandler exceptionHandler, List<BeanVerifier<T>> verifiers)
| |
| getLineProcessed | back to summary |
|---|---|
public long getLineProcessed()
| |
| getTerminalException | back to summary |
|---|---|
public Throwable getTerminalException()
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Runs a nice, tight loop to simply read input and submit for conversion.
| |
| setExecutor | back to summary |
|---|---|
| public void setExecutor(LineExecutor<T> executor) Sets the executor that will convert text input to bean output.
| |