Class CsvReader.CsvRecordIterator

  • All Implemented Interfaces:
    CloseableIterator<T>, java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<T>
    Enclosing class:
    CsvReader<T>

    private class CsvReader.CsvRecordIterator
    extends java.lang.Object
    implements CloseableIterator<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean fetched  
      private T fetchedRecord  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CsvRecordIterator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean hasNext()  
      T next()  
      • 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, remove
    • Field Detail

      • fetchedRecord

        private T fetchedRecord
      • fetched

        private boolean fetched
    • Constructor Detail

      • CsvRecordIterator

        private CsvRecordIterator()
    • Method Detail

      • hasNext

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

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

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException