T
- The type pf the CSVReader class to returnpublic abstract class CSVReaderBaseBuilder<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected Locale |
errorLocale |
protected ICSVParser |
icsvParser |
protected boolean |
keepCR |
protected LineValidatorAggregator |
lineValidatorAggregator |
protected int |
multilineLimit |
protected CSVReaderNullFieldIndicator |
nullFieldIndicator |
protected Reader |
reader |
protected RowProcessor |
rowProcessor |
protected RowValidatorAggregator |
rowValidatorAggregator |
protected int |
skipLines |
protected boolean |
verifyReader |
Modifier | Constructor and Description |
---|---|
protected |
CSVReaderBaseBuilder(Reader reader)
Base Constructor
|
Modifier and Type | Method and Description |
---|---|
abstract T |
build()
Must create the CSVReader type requested.
|
protected ICSVParser |
getCsvParser()
Used by unit tests.
|
Locale |
getErrorLocale() |
LineValidatorAggregator |
getLineValidatorAggregator() |
protected int |
getMultilineLimit()
Used by unit tests.
|
protected ICSVParser |
getOrCreateCsvParser()
Creates a new
ICSVParser if the class doesn't already hold one. |
protected Reader |
getReader()
Used by unit tests.
|
RowValidatorAggregator |
getRowValidatorAggregator() |
protected int |
getSkipLines()
Used by unit tests.
|
boolean |
isVerifyReader() |
protected boolean |
keepCarriageReturn()
Returns if the reader built will keep or discard carriage returns.
|
protected final Reader reader
protected final LineValidatorAggregator lineValidatorAggregator
protected final RowValidatorAggregator rowValidatorAggregator
protected int skipLines
protected ICSVParser icsvParser
protected boolean keepCR
protected boolean verifyReader
protected CSVReaderNullFieldIndicator nullFieldIndicator
protected int multilineLimit
protected Locale errorLocale
protected RowProcessor rowProcessor
protected CSVReaderBaseBuilder(Reader reader)
reader
- The reader to an underlying CSV source.protected Reader getReader()
protected int getSkipLines()
protected ICSVParser getCsvParser()
protected int getMultilineLimit()
protected boolean keepCarriageReturn()
true
if the reader built will keep carriage returns,
false
otherwiseprotected ICSVParser getOrCreateCsvParser()
ICSVParser
if the class doesn't already hold one.ICSVParser
or a default parser.public boolean isVerifyReader()
public Locale getErrorLocale()
public LineValidatorAggregator getLineValidatorAggregator()
LineValidatorAggregator
for custom defined LineValidator
s.public RowValidatorAggregator getRowValidatorAggregator()
RowValidatorAggregator
for the custom defined RowValidator
s.Copyright © 2005–2023. All rights reserved.