Interface IOBaseStream<T, S extends IOBaseStream<T,S,B>, B extends BaseStream<T,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 Superinterfaces:
AutoCloseable, Closeable
- All Known Subinterfaces:
IOStream<T>
public interface IOBaseStream<T, S extends IOBaseStream<T,S,B>, B extends BaseStream<T,B>>
extends Closeable
Like
BaseStream but throws IOException.- Since:
- 2.12.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault BaseStream<T, B> default voidclose()LikeBaseStream.close().default booleanLikeBaseStream.isParallel().default IOIterator<T> iterator()LikeBaseStream.iterator().default SonClose(IORunnable closeHandler) default Sparallel()LikeBaseStream.parallel().default SLikeBaseStream.sequential().default IOSpliterator<T> LikeBaseStream.spliterator().default SLikeBaseStream.unordered().unwrap()Unwraps this instance and returns the underlyingStream.Wraps aStream.
-
Method Details
-
asBaseStream
- Returns:
- an
UncheckedIOExceptionBaseStream.
-
close
LikeBaseStream.close().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- See Also:
-
isParallel
-
iterator
-
onClose
- Parameters:
closeHandler- Seedelegate.- Returns:
- See
delegate. - Throws:
IOException- if an I/O error occurs.- See Also:
-
parallel
-
sequential
-
spliterator
LikeBaseStream.spliterator().- Returns:
- See
delegate. - See Also:
-
unordered
-
unwrap
-
wrap
-