Class CSVParser.CSVRecordIterator

java.lang.Object
org.apache.commons.csv.CSVParser.CSVRecordIterator
All Implemented Interfaces:
Iterator<CSVRecord>
Enclosing class:
CSVParser

final class CSVParser.CSVRecordIterator extends Object implements Iterator<CSVRecord>
  • Field Details

  • Constructor Details

    • CSVRecordIterator

      CSVRecordIterator()
  • Method Details

    • getNextRecord

      private CSVRecord getNextRecord()
      Gets the next record or null at the end of stream or max rows read.
      Returns:
      the next record, or null if the end of the stream has been reached.
      Throws:
      IOException - on parse error or input read-failure
      CSVException - on invalid input.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<CSVRecord>
    • next

      public CSVRecord next()
      Specified by:
      next in interface Iterator<CSVRecord>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<CSVRecord>