Package org.apache.commons.io.function
Class IOIteratorAdapter<E>
java.lang.Object
org.apache.commons.io.function.IOIteratorAdapter<E>
- Type Parameters:
E- the type of the stream elements.
- All Implemented Interfaces:
IOIterator<E>
Adapts an
Iterator as an IOIterator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <E> IOIteratorAdapter<E> booleanhasNext()LikeIterator.hasNext().next()LikeIterator.next().unwrap()Unwraps this instance and returns the underlyingIterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.io.function.IOIterator
asIterator, forEachRemaining, remove
-
Field Details
-
delegate
-
-
Constructor Details
-
IOIteratorAdapter
-
-
Method Details
-
adapt
-
hasNext
Description copied from interface:IOIteratorLikeIterator.hasNext().- Specified by:
hasNextin interfaceIOIterator<E>- Returns:
- See delegate.
- Throws:
IOException- if an I/O error occurs.
-
next
Description copied from interface:IOIteratorLikeIterator.next().- Specified by:
nextin interfaceIOIterator<E>- Returns:
- See delegate.
- Throws:
IOException- if an I/O error occurs.
-
unwrap
Description copied from interface:IOIteratorUnwraps this instance and returns the underlyingIterator.Implementations may not have anything to unwrap and that behavior is undefined for now.
- Specified by:
unwrapin interfaceIOIterator<E>- Returns:
- the underlying Iterator.
-