Interface ClosableIterator<T>


public interface ClosableIterator<T>
Iterator for the custom parser that can be closed after processing. Used by ClosableIteratorBuilder
Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes any streams and releases system resources associated with the iterator.
    double
    Returns the estimated progress value.
    boolean
    Returns flag to check if the iterator has next line.
    Returns the next line of the iterator.
  • Method Details

    • hasNext

      boolean hasNext() throws IOException
      Returns flag to check if the iterator has next line.
      Returns:
      Flag for the presence of the next line
      Throws:
      IOException - if an I/O error occurs reading from the file
    • next

      T next() throws IOException
      Returns the next line of the iterator.
      Returns:
      Next line
      Throws:
      IOException - if an I/O error occurs reading from the file
    • getEstimationProgress

      double getEstimationProgress() throws IOException
      Returns the estimated progress value.
      Returns:
      Estimated progress
      Throws:
      IOException - if an I/O error occurs
    • close

      void close() throws IOException
      Closes any streams and releases system resources associated with the iterator.
      Throws:
      IOException - if an I/O error occurs