Uses of Interface
org.apache.commons.io.function.IOConsumer
-
Packages that use IOConsumer Package Description org.apache.commons.io Provides classes for working with streams, readers, writers and files.org.apache.commons.io.function Provides IO-only related functional interfaces for lambda expressions and method references.org.apache.commons.io.output Provides implementations of output classes, such asOutputStreamandWriter. -
-
Uses of IOConsumer in org.apache.commons.io
Methods in org.apache.commons.io with parameters of type IOConsumer Modifier and Type Method Description voidRandomAccessFileMode. accept(java.nio.file.Path file, IOConsumer<java.io.RandomAccessFile> consumer)Performs an operation on theRandomAccessFilespecified at the givenPath.static voidIOUtils. close(java.io.Closeable closeable, IOConsumer<java.io.IOException> consumer)Closes the givenCloseableas a null-safe operation. -
Uses of IOConsumer in org.apache.commons.io.function
Fields in org.apache.commons.io.function declared as IOConsumer Modifier and Type Field Description static IOConsumer<?>IOConsumer. NOOP_IO_CONSUMERConsider private.Methods in org.apache.commons.io.function that return IOConsumer Modifier and Type Method Description default IOConsumer<T>IOConsumer. andThen(IOConsumer<? super T> after)Returns a composedIOConsumerthat performs, in sequence, this operation followed by theafteroperation.default IOConsumer<T>IOFunction. andThen(java.util.function.Consumer<? super R> after)Returns a composedIOFunctionthat first applies this function to its input, and then applies theafterconsumer to the result.default IOConsumer<T>IOFunction. andThen(IOConsumer<? super R> after)Returns a composedIOFunctionthat first applies this function to its input, and then applies theafterconsumer to the result.static <T> IOConsumer<T>IOConsumer. noop()Returns the constant no-op consumer.Methods in org.apache.commons.io.function with parameters of type IOConsumer Modifier and Type Method Description static <T> voidUncheck. accept(IOConsumer<T> consumer, T t)Accepts an IO consumer with the given argument.default IOConsumer<T>IOConsumer. andThen(IOConsumer<? super T> after)Returns a composedIOConsumerthat performs, in sequence, this operation followed by theafteroperation.default IOConsumer<T>IOFunction. andThen(IOConsumer<? super R> after)Returns a composedIOFunctionthat first applies this function to its input, and then applies theafterconsumer to the result.static <T> voidIOConsumer. forAll(IOConsumer<T> action, java.lang.Iterable<T> iterable)Performs an action for each element of the collection gathering any exceptions.static <T> voidIOConsumer. forAll(IOConsumer<T> action, java.util.stream.Stream<T> stream)Performs an action for each element of the collection gathering any exceptions.static <T> voidIOConsumer. forAll(IOConsumer<T> action, T... array)Performs an action for each element of the array, gathering any exceptions.default voidIOStream. forAll(IOConsumer<T> action)Performs an action for each element gathering any exceptions.default voidIOStream. forAll(IOConsumer<T> action, java.util.function.BiFunction<java.lang.Integer,java.io.IOException,java.io.IOException> exSupplier)Performs an action for each element gathering any exceptions.static <T> voidIOConsumer. forEach(java.lang.Iterable<T> iterable, IOConsumer<T> action)Performs an action for each element of the collection, stopping at the first exception.static <T> voidIOConsumer. forEach(java.util.stream.Stream<T> stream, IOConsumer<T> action)Performs an action for each element of the stream, stopping at the first exception.static <T> voidIOConsumer. forEach(T[] array, IOConsumer<T> action)Performs an action for each element of this array, stopping at the first exception.default voidIOStream. forEach(IOConsumer<? super T> action)LikeStream.forEach(java.util.function.Consumer)but throwsIOException.default voidIOStream. forEachOrdered(IOConsumer<? super T> action)LikeStream.forEachOrdered(java.util.function.Consumer).default voidIOIterator. forEachRemaining(IOConsumer<? super E> action)LikeIterator.forEachRemaining(Consumer).default voidIOSpliterator. forEachRemaining(IOConsumer<? super T> action)LikeSpliterator.forEachRemaining(Consumer).default IOStream<T>IOStream. peek(IOConsumer<? super T> action)LikeStream.peek(java.util.function.Consumer).default booleanIOSpliterator. tryAdvance(IOConsumer<? super T> action)LikeSpliterator.tryAdvance(Consumer). -
Uses of IOConsumer in org.apache.commons.io.output
Constructors in org.apache.commons.io.output with parameters of type IOConsumer Constructor Description ThresholdingOutputStream(int threshold, IOConsumer<ThresholdingOutputStream> thresholdConsumer, IOFunction<ThresholdingOutputStream,java.io.OutputStream> outputStreamGetter)Constructs an instance of this class which will trigger an event at the specified threshold.
-