final class IOStreams
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.Object |
NONE |
| Modifier | Constructor and Description |
|---|---|
private |
IOStreams() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <T> void |
forAll(java.util.stream.Stream<T> stream,
IOConsumer<T> action) |
(package private) static <T> void |
forAll(java.util.stream.Stream<T> stream,
IOConsumer<T> action,
java.util.function.BiFunction<java.lang.Integer,java.io.IOException,java.io.IOException> exSupplier) |
(package private) static <T> void |
forEach(java.util.stream.Stream<T> stream,
IOConsumer<T> action) |
(package private) static <T> java.util.stream.Stream<T> |
of(java.lang.Iterable<T> values)
Null-safe version of
StreamSupport.stream(java.util.Spliterator, boolean). |
(package private) static <T> java.util.stream.Stream<T> |
of(java.util.stream.Stream<T> stream) |
(package private) static <T> java.util.stream.Stream<T> |
of(T... values)
Null-safe version of
Stream.of(Object[]). |
(package private) static <T> IOConsumer<T> |
toIOConsumer(IOConsumer<T> action) |
static <T> void forAll(java.util.stream.Stream<T> stream,
IOConsumer<T> action)
throws IOExceptionList
IOExceptionListstatic <T> void forAll(java.util.stream.Stream<T> stream,
IOConsumer<T> action,
java.util.function.BiFunction<java.lang.Integer,java.io.IOException,java.io.IOException> exSupplier)
throws IOExceptionList
IOExceptionListstatic <T> void forEach(java.util.stream.Stream<T> stream,
IOConsumer<T> action)
throws java.io.IOException
java.io.IOExceptionstatic <T> java.util.stream.Stream<T> of(java.lang.Iterable<T> values)
StreamSupport.stream(java.util.Spliterator, boolean).
Copied from Apache Commons Lang.T - the type of stream elements.values - the elements of the new stream, may be null.values or Stream.empty().static <T> java.util.stream.Stream<T> of(java.util.stream.Stream<T> stream)
@SafeVarargs static <T> java.util.stream.Stream<T> of(T... values)
Stream.of(Object[]).
Copied from Apache Commons Lang.T - the type of stream elements.values - the elements of the new stream, may be null.values or Stream.empty().static <T> IOConsumer<T> toIOConsumer(IOConsumer<T> action)