Class CSVParser.CSVRecordIterator

  • All Implemented Interfaces:
    java.util.Iterator<CSVRecord>
    Enclosing class:
    CSVParser

    final class CSVParser.CSVRecordIterator
    extends java.lang.Object
    implements java.util.Iterator<CSVRecord>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private CSVRecord current  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private CSVRecord getNextRecord()
      Gets the next record.
      boolean hasNext()  
      CSVRecord next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • CSVRecordIterator

        CSVRecordIterator()
    • Method Detail

      • getNextRecord

        private CSVRecord getNextRecord()
        Gets the next record.
        Returns:
        the next record.
        Throws:
        java.io.IOException - on parse error or input read-failure
        CSVException - on invalid input.
      • hasNext

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

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

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