Package org.apache.commons.io.function
Class IOBaseStreamAdapter<T,S extends IOBaseStream<T,S,B>,B extends java.util.stream.BaseStream<T,B>>
- java.lang.Object
-
- org.apache.commons.io.function.IOBaseStreamAdapter<T,S,B>
-
- Type Parameters:
T
- the type of the stream elements.S
- the type of the stream extendingIOBaseStream
.
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,IOBaseStream<T,S,B>
- Direct Known Subclasses:
IOStreamAdapter
abstract class IOBaseStreamAdapter<T,S extends IOBaseStream<T,S,B>,B extends java.util.stream.BaseStream<T,B>> extends java.lang.Object implements IOBaseStream<T,S,B>
Abstracts anIOBaseStream
implementation. Keep package-private for now.
-
-
Constructor Summary
Constructors Constructor Description IOBaseStreamAdapter(B delegate)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B
unwrap()
Unwraps this instance and returns the underlyingStream
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.io.function.IOBaseStream
asBaseStream, close, isParallel, iterator, onClose, parallel, sequential, spliterator, unordered, wrap
-
-
-
-
Constructor Detail
-
IOBaseStreamAdapter
IOBaseStreamAdapter(B delegate)
Constructs an instance.- Parameters:
delegate
- the delegate.
-
-
Method Detail
-
unwrap
public B unwrap()
Description copied from interface:IOBaseStream
Unwraps this instance and returns the underlyingStream
.Implementations may not have anything to unwrap and that behavior is undefined for now.
-
-