- Type Parameters:
E- the type of elements returned by this iterator.
- All Known Implementing Classes:
ArchiveInputStream.ArchiveEntryIOIterator
public interface IOIterator<E>
Like
Iterator but throws IOException.- Since:
- 1.27.1-0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidforEachRemaining(IOConsumer<? super E> action) booleanhasNext()LikeIterator.hasNext().next()LikeIterator.next().
-
Method Details
-
hasNext
LikeIterator.hasNext().- Returns:
- See delegate.
- Throws:
IOException- if an I/O error occurs.
-
next
LikeIterator.next().- Returns:
- See delegate.
- Throws:
IOException- if an I/O error occurs.NoSuchElementException- if the iteration has no more elements
-
forEachRemaining
- Parameters:
action- See delegate.- Throws:
IOException- if an I/O error occurs.
-
asIterator
- Returns:
- an
UncheckedIOExceptionIterator.
-