public class SingleLineReader extends Object
CsvToBean.iterator()
and CompleteFileReader
.
It is not meant for end user consumption.Modifier and Type | Field and Description |
---|---|
protected CSVReader |
csvReader |
protected boolean |
ignoreEmptyLines |
protected String[] |
line
Stores the result of parsing a line of input.
|
Constructor and Description |
---|
SingleLineReader(CSVReader csvReader,
boolean ignoreEmptyLines)
The only constructor.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getLine()
Returns a copy of the last line read by
readNextLine() . |
long |
getLinesRead() |
String[] |
readNextLine()
Reads from the
CSVReader provided on instantiation until a
usable line of input is found. |
protected final CSVReader csvReader
protected final boolean ignoreEmptyLines
protected String[] line
public String[] readNextLine() throws IOException, CsvValidationException
CSVReader
provided on instantiation until a
usable line of input is found.null
if none
remainIOException
- If bad things happen during the readCsvValidationException
- If a user-defined validator failspublic long getLinesRead()
public String[] getLine()
readNextLine()
.Copyright © 2005–2023. All rights reserved.