Package org.apache.commons.io.function
Class IOBaseStreamAdapter<T,S extends IOBaseStream<T,S,B>,B extends 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:
Closeable
,AutoCloseable
,IOBaseStream<T,
S, B>
- Direct Known Subclasses:
IOStreamAdapter
abstract class IOBaseStreamAdapter<T,S extends IOBaseStream<T,S,B>,B extends BaseStream<T,B>>
extends Object
implements IOBaseStream<T,S,B>
Abstracts an
IOBaseStream
implementation.
Keep package-private for now.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
delegate
The underlying base stream.
-
-
Constructor Details
-
IOBaseStreamAdapter
IOBaseStreamAdapter(B delegate) Constructs an instance.- Parameters:
delegate
- the delegate.
-
-
Method Details
-
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.
- Specified by:
unwrap
in interfaceIOBaseStream<T,
S extends IOBaseStream<T, S, B>, B extends BaseStream<T, B>> - Returns:
- the underlying stream.
-