Package com.opencsv.bean
Class CsvToBean.CsvToBeanIterator
- java.lang.Object
-
- com.opencsv.bean.CsvToBean.CsvToBeanIterator
-
-
Field Summary
Fields Modifier and Type Field Description private Tbeanprivate java.lang.String[]lineprivate longlineProcessedprivate SingleLineReaderlineReaderprivate java.util.concurrent.BlockingQueue<OrderedObject<T>>resultantBeansQueueprivate 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 booleanhasNext()Tnext()private voidprocessException()private voidreadLineWithPossibleError()private voidreadSingleLine()voidremove()
-
-
-
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.IOExceptionCsvValidationException
-
readSingleLine
private void readSingleLine()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>
-
-