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 void
close()
-
Methods inherited from interface Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
close
void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- if an I/O error occurs
-
-