Package com.opencsv.bean
Class CsvToBean.CsvToBeanIterator
- java.lang.Object
-
- com.opencsv.bean.CsvToBean.CsvToBeanIterator
-
-
Field Summary
Fields Modifier and Type Field Description private T
bean
private java.lang.String[]
line
private long
lineProcessed
private SingleLineReader
lineReader
private java.util.concurrent.BlockingQueue<OrderedObject<T>>
resultantBeansQueue
private java.util.concurrent.BlockingQueue<OrderedObject<CsvException>>
thrownExceptionsQueue
-
Constructor Summary
Constructors Constructor Description CsvToBeanIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
private void
processException()
private void
readLineWithPossibleError()
private void
readSingleLine()
void
remove()
-
-
-
Field Detail
-
resultantBeansQueue
private final java.util.concurrent.BlockingQueue<OrderedObject<T>> resultantBeansQueue
-
thrownExceptionsQueue
private final java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue
-
lineReader
private final SingleLineReader lineReader
-
line
private java.lang.String[] line
-
lineProcessed
private long lineProcessed
-
bean
private T bean
-
-
Method Detail
-
processException
private void processException()
-
readLineWithPossibleError
private void readLineWithPossibleError() throws java.io.IOException, CsvValidationException
- Throws:
java.io.IOException
CsvValidationException
-
readSingleLine
private void readSingleLine()
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<T>
-
-