final class IOStreams extends Object
| 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<Integer,IOException,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(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 final Object NONE
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<Integer,IOException,IOException> exSupplier) throws IOExceptionList
IOExceptionListstatic <T> void forEach(java.util.stream.Stream<T> stream, IOConsumer<T> action) throws IOException
IOExceptionstatic <T> java.util.stream.Stream<T> of(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)