Package org.apache.commons.io.function
Interface IOIterable<T>
- Type Parameters:
T
- the type of elements returned by the iterable.
- All Known Implementing Classes:
ReversedLinesFileReader
public interface IOIterable<T>
Like
Iterable
but throws IOException
.- Since:
- 2.19.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
forEach
(IOConsumer<? super T> action) LikeIterable.iterator()
.iterator()
LikeIterable.iterator()
.default IOSpliterator
<T> LikeIterable.spliterator()
.unwrap()
Unwraps this instance and returns the underlyingIterable
.
-
Method Details
-
forEach
LikeIterable.iterator()
.- Parameters:
action
- The action to be performed for each element.- Throws:
NullPointerException
- if the specified action is null.IOException
- thrown by the given action.- See Also:
-
iterator
IOIterator<T> iterator()LikeIterable.iterator()
.- Returns:
- See
delegate
. - See Also:
-
spliterator
LikeIterable.spliterator()
.- Returns:
- See
delegate
. - See Also:
-
unwrap
Unwraps this instance and returns the underlyingIterable
.Implementations may not have anything to unwrap and that behavior is undefined for now.
- Returns:
- the underlying Iterable.
-