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 SummaryModifier and TypeMethodDescriptiondefault voidforEach(IOConsumer<? super T> action) LikeIterable.iterator().iterator()LikeIterable.iterator().default IOSpliterator<T> LikeIterable.spliterator().unwrap()Unwraps this instance and returns the underlyingIterable.
- 
Method Details- 
forEachLikeIterable.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:
 
- 
iteratorIOIterator<T> iterator()LikeIterable.iterator().- Returns:
- See delegate.
- See Also:
 
- 
spliteratorLikeIterable.spliterator().- Returns:
- See delegate.
- See Also:
 
- 
unwrapUnwraps this instance and returns the underlyingIterable.Implementations may not have anything to unwrap and that behavior is undefined for now. - Returns:
- the underlying Iterable.
 
 
-