-
- Type Parameters:
E- the type of elements returned by this iterator.
- All Known Implementing Classes:
ArchiveInputStream.ArchiveEntryIOIterator
public interface IOIterator<E>LikeIteratorbut throwsIOException.- Since:
- 1.27.1-0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Iterator<E>asIterator()Creates anIteratorfor this instance that throwsUncheckedIOExceptioninstead ofIOException.default voidforEachRemaining(IOConsumer<? super E> action)LikeIterator.forEachRemaining(Consumer).booleanhasNext()LikeIterator.hasNext().Enext()LikeIterator.next().
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws java.io.IOExceptionLikeIterator.hasNext().- Returns:
- See delegate.
- Throws:
java.io.IOException- if an I/O error occurs.
-
next
E next() throws java.io.IOException
LikeIterator.next().- Returns:
- See delegate.
- Throws:
java.io.IOException- if an I/O error occurs.java.util.NoSuchElementException- if the iteration has no more elements
-
forEachRemaining
default void forEachRemaining(IOConsumer<? super E> action) throws java.io.IOException
LikeIterator.forEachRemaining(Consumer).- Parameters:
action- See delegate.- Throws:
java.io.IOException- if an I/O error occurs.
-
asIterator
default java.util.Iterator<E> asIterator()
Creates anIteratorfor this instance that throwsUncheckedIOExceptioninstead ofIOException.- Returns:
- an
UncheckedIOExceptionIterator.
-
-