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
-
Method Details
-
hasNext
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
Returns the next line of the iterator.- Returns:
- Next line
- Throws:
IOException
- if an I/O error occurs reading from the file
-
getEstimationProgress
Returns the estimated progress value.- Returns:
- Estimated progress
- Throws:
IOException
- if an I/O error occurs
-
close
Closes any streams and releases system resources associated with the iterator.- Throws:
IOException
- if an I/O error occurs
-