Package org.apache.commons.io.function
Class UncheckedIOBaseStream<T,S extends IOBaseStream<T,S,B>,B extends java.util.stream.BaseStream<T,B>>
- java.lang.Object
-
- org.apache.commons.io.function.UncheckedIOBaseStream<T,S,B>
-
- Type Parameters:
T
- the type of the stream elements.S
- the type of the IO stream extendingIOBaseStream
.B
- the type of the stream extendingBaseStream
.
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.stream.BaseStream<T,B>
class UncheckedIOBaseStream<T,S extends IOBaseStream<T,S,B>,B extends java.util.stream.BaseStream<T,B>> extends java.lang.Object implements java.util.stream.BaseStream<T,B>
AnBaseStream
for aIOBaseStream
that throwsUncheckedIOException
instead ofIOException
. Keep package-private for now.
-
-
Constructor Summary
Constructors Constructor Description UncheckedIOBaseStream(S delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isParallel()
java.util.Iterator<T>
iterator()
B
onClose(java.lang.Runnable closeHandler)
B
parallel()
B
sequential()
java.util.Spliterator<T>
spliterator()
B
unordered()
-
-
-
Field Detail
-
delegate
private final S extends IOBaseStream<T,S,B> delegate
-
-
Constructor Detail
-
UncheckedIOBaseStream
UncheckedIOBaseStream(S delegate)
-
-
Method Detail
-
close
public void close()
-
isParallel
public boolean isParallel()
-
iterator
public java.util.Iterator<T> iterator()
-
onClose
public B onClose(java.lang.Runnable closeHandler)
-
parallel
public B parallel()
-
sequential
public B sequential()
-
spliterator
public java.util.Spliterator<T> spliterator()
-
-