| Constructor and Description |
|---|
CloseableIterator(Iterator<T> iterable,
Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
static <T> CloseableIterator<T> |
wrap(Iterator<T> iterator) |
static <T> CloseableIterator<T> |
wrap(Iterator<T> iterator,
Closeable closeable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static <T> CloseableIterator<T> wrap(Iterator<T> iterator, Closeable closeable)
public static <T> CloseableIterator<T> wrap(Iterator<T> iterator)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.