Interface CloseableIterator<T>
- Type Parameters:
T- type of elements of the iterator
- All Superinterfaces:
AutoCloseable, Closeable
- All Known Subinterfaces:
CloseableIteratorWithoutException<T>, InMemoryStream<T>, Parser<T>
- All Known Implementing Classes:
AbstractCloseableIterator, ArrayBlockingStream, CloseableIteratorAdapter, CSVParser, DlgpeParser, DlgpParser, FilterIterator, FilterIteratorWithoutException, RDFParser, RLSCSVParser, RLSCSVsParser
Represents an iterator whose traversal can raise checked exceptions and that must be closed.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
-
Method Details
-
hasNext
Indicates whether another element can be read from the iterator.- Returns:
- true iff there is a next element
- Throws:
IteratorException- if an exception occur
-
next
Returns the next element from the iterator.- Returns:
- the next element
- Throws:
IteratorException- if an exception occur
-
close
void close()Closes the iterator and releases its resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-