Constructor and Description |
---|
CloseableIterator(Iterator<E> delegate,
Closeable resource) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
E |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017. All rights reserved.