Package org.geotools.api.data
Interface CloseableIterator<T>
-
- All Superinterfaces:
AutoCloseable,Closeable,Iterator<T>
- All Known Implementing Classes:
DefaultCloseableIterator,LazySearchIterator
public interface CloseableIterator<T> extends Iterator<T>, Closeable
An iterator backed by some resource that needs closing when done using it
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()-
Methods inherited from interface Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
close
void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- if an I/O error occurs
-
-