T
- the type of the stream elements.S
- the type of the stream extending IOBaseStream
.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>
IOBaseStream
implementation.
Keep package-private for now.Modifier and Type | Field and Description |
---|---|
private B |
delegate
The underlying base stream.
|
Constructor and Description |
---|
IOBaseStreamAdapter(B delegate)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
B |
unwrap()
Unwraps this instance and returns the underlying
Stream . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asBaseStream, close, isParallel, iterator, onClose, parallel, sequential, spliterator, unordered, wrap
IOBaseStreamAdapter(B delegate)
delegate
- the delegate.public B unwrap()
IOBaseStream
Stream
.
Implementations may not have anything to unwrap and that behavior is undefined for now.