# Uses of Interface
org.apache.commons.io.function.IOSupplier

Packages that use IOSupplier
Package
Description
org.apache.commons.io
Provides classes for working with streams, readers, writers and files.
org.apache.commons.io.build
Provides classes to implement IO builders.
org.apache.commons.io.file
Provides extensions in the realm of `java.nio.file`.
org.apache.commons.io.filefilter
Provides the an interface `IOFileFilter` that combines both `FileFilter` and `FilenameFilter`.
org.apache.commons.io.function
Provides IO-only related functional interfaces for lambda expressions and method references.
org.apache.commons.io.input
Provides implementations of input classes, such as `InputStream` and `Reader`.
org.apache.commons.io.monitor
Provides a component for monitoring file system events (directory and file create, update and delete events).
org.apache.commons.io.output
Provides implementations of output classes, such as `OutputStream` and `Writer`.
org.apache.commons.io.serialization
Provides a framework for controlling the deserialization of classes.

- ## Uses of IOSupplier in org.apache.commons.io

  Methods in org.apache.commons.io with parameters of type IOSupplier
  Modifier and Type
  Method
  Description
  `static String`
  IOUtils.`toString(IOSupplier<InputStream> input, Charset charset)`
  Gets the contents of an `InputStream` from a supplier as a String using the specified character encoding.
  `static String`
  IOUtils.`toString(IOSupplier<InputStream> input, Charset charset, IOSupplier<String> defaultString)`
  Gets the contents of an `InputStream` from a supplier as a String using the specified character encoding.

- ## Uses of IOSupplier in org.apache.commons.io.build

  Classes in org.apache.commons.io.build that implement IOSupplier
  Modifier and Type
  Class
  Description
  `class`
  `AbstractOrigin<T,B extends AbstractOrigin<T,B>>`
  Abstracts the origin of data for builders like a `File`, `Path`, `Reader`, `Writer`, `InputStream`, `OutputStream`, and `URI`.
  `static class`
  `AbstractOrigin.AbstractRandomAccessFileOrigin<T extends RandomAccessFile,B extends AbstractOrigin.AbstractRandomAccessFileOrigin<T,B>>`
  A `RandomAccessFile` origin.
  `static class`
  `AbstractOrigin.ByteArrayOrigin`
  A `byte[]` origin.
  `static class`
  `AbstractOrigin.CharSequenceOrigin`
  A `CharSequence` origin.
  `static class`
  `AbstractOrigin.FileOrigin`
  A `File` origin.
  `static class`
  `AbstractOrigin.InputStreamOrigin`
  An `InputStream` origin.
  `static class`
  `AbstractOrigin.IORandomAccessFileOrigin`
  A `IORandomAccessFile` origin.
  `static class`
  `AbstractOrigin.OutputStreamOrigin`
  An `OutputStream` origin.
  `static class`
  `AbstractOrigin.PathOrigin`
  A `Path` origin.
  `static class`
  `AbstractOrigin.RandomAccessFileOrigin`
  A `RandomAccessFile` origin.
  `static class`
  `AbstractOrigin.ReaderOrigin`
  A `Reader` origin.
  `static class`
  `AbstractOrigin.URIOrigin`
  A `URI` origin.
  `static class`
  `AbstractOrigin.WriterOrigin`
  A `Writer` origin.
  `class`
  `AbstractOriginSupplier<T,B extends AbstractOriginSupplier<T,B>>`
  Abstracts building an instance of `T`.
  `class`
  `AbstractStreamBuilder<T,B extends AbstractStreamBuilder<T,B>>`
  Abstracts building a typed instance of `T`.
  `class`
  `AbstractSupplier<T,B extends AbstractSupplier<T,B>>`
  Abstracts supplying an instance of `T`.

- ## Uses of IOSupplier in org.apache.commons.io.file

  Classes in org.apache.commons.io.file that implement IOSupplier
  Modifier and Type
  Class
  Description
  `static class`
  `AccumulatorPathVisitor.Builder`
  Builds instances of `AccumulatorPathVisitor`.
  `static class`
  `CountingPathVisitor.AbstractBuilder<T,B extends CountingPathVisitor.AbstractBuilder<T,B>>`
  Builds instances of `CountingPathVisitor`.
  `static class`
  `CountingPathVisitor.Builder`
  Builds instances of `CountingPathVisitor`.
  `protected static class`
  `SimplePathVisitor.AbstractBuilder<T,B extends AbstractSupplier<T,B>>`
  Abstracts builder for subclasses.
  Methods in org.apache.commons.io.file with parameters of type IOSupplier
  Modifier and Type
  Method
  Description
  `static long`
  PathUtils.`copy(IOSupplier<InputStream> in, Path target, CopyOption... copyOptions)`
  Copies the InputStream from the supplier with `Files.copy(InputStream, Path, CopyOption...)`.

- ## Uses of IOSupplier in org.apache.commons.io.filefilter

  Classes in org.apache.commons.io.filefilter that implement IOSupplier
  Modifier and Type
  Class
  Description
  `static class`
  `WildcardFileFilter.Builder`
  Builds a new `WildcardFileFilter` instance.

- ## Uses of IOSupplier in org.apache.commons.io.function

  Methods in org.apache.commons.io.function that return IOSupplier
  Modifier and Type
  Method
  Description
  `default IOSupplier<R>`
  IOFunction.`compose(Supplier<? extends T> before)`
  Returns a composed `IOFunction` that first applies the `before` function to its input, and then applies this function to the result.
  `default IOSupplier<R>`
  IOFunction.`compose(IOSupplier<? extends T> before)`
  Returns a composed `IOFunction` that first applies the `before` function to its input, and then applies this function to the result.
  Methods in org.apache.commons.io.function with parameters of type IOSupplier
  Modifier and Type
  Method
  Description
  `default <R> R`
  IOStream.`collect(IOSupplier<R> supplier, IOBiConsumer<R,? super T> accumulator, IOBiConsumer<R,R> combiner)`
  Like `Stream.collect(java.util.function.Supplier, java.util.function.BiConsumer, java.util.function.BiConsumer)`.
  `default IOSupplier<R>`
  IOFunction.`compose(IOSupplier<? extends T> before)`
  Returns a composed `IOFunction` that first applies the `before` function to its input, and then applies this function to the result.
  `static <T> T`
  Uncheck.`get(IOSupplier<T> supplier)`
  Gets the result from an IO supplier.
  `static <T> T`
  Uncheck.`get(IOSupplier<T> supplier, Supplier<String> message)`
  Gets the result from an IO supplier.

- ## Uses of IOSupplier in org.apache.commons.io.input

  Classes in org.apache.commons.io.input that implement IOSupplier
  Modifier and Type
  Class
  Description
  `static class`
  `AutoCloseInputStream.Builder`
  Builds a new `AutoCloseInputStream` instance.
  `static class`
  `BOMInputStream.Builder`
  Builds a new `BOMInputStream`.
  `static class`
  `BoundedInputStream.Builder`
  Builds a new `BoundedInputStream`.
  `static class`
  `BufferedFileChannelInputStream.Builder`
  Builds a new `BufferedFileChannelInputStream`.
  `static class`
  `CharSequenceInputStream.Builder`
  Builds a new `CharSequenceInputStream`.
  `static class`
  `ChecksumInputStream.Builder`
  Builds a new `ChecksumInputStream`.
  `static class`
  `MemoryMappedFileInputStream.Builder`
  Builds a new `MemoryMappedFileInputStream`.
  `static class`
  `MessageDigestCalculatingInputStream.Builder`
  Deprecated.
  Builds a new `MessageDigestCalculatingInputStream`.
  `static class`
  `MessageDigestInputStream.Builder`
  Builds new `MessageDigestInputStream`.
  `static class`
  `ObservableInputStream.AbstractBuilder<T extends ObservableInputStream.AbstractBuilder<T>>`
  For subclassing builders from `BoundedInputStream` subclassses.
  `static class`
  `ObservableInputStream.Builder`
  Builds instances of `ObservableInputStream`.
  `protected static class`
  `ProxyInputStream.AbstractBuilder<T,B extends AbstractStreamBuilder<T,B>>`
  Abstracts builder properties for subclasses.
  `static class`
  `QueueInputStream.Builder`
  Builds a new `QueueInputStream`.
  `static class`
  `RandomAccessFileInputStream.Builder`
  Builds a new `RandomAccessFileInputStream`.
  `static class`
  `ReadAheadInputStream.Builder`
  Builds a new `ReadAheadInputStream`.
  `static class`
  `ReaderInputStream.Builder`
  Builds a new `ReaderInputStream`.
  `static class`
  `ReversedLinesFileReader.Builder`
  Builds a new `ReversedLinesFileReader`.
  `static class`
  `Tailer.Builder`
  Builds a new `Tailer`.
  `static class`
  `ThrottledInputStream.Builder`
  Builds a new `ThrottledInputStream`.
  `static class`
  `UncheckedBufferedReader.Builder`
  Builds a new `UncheckedBufferedReader`.
  `static class`
  `UncheckedFilterInputStream.Builder`
  Builds a new `UncheckedFilterInputStream`.
  `static class`
  `UncheckedFilterReader.Builder`
  Builds a new `UncheckedFilterReader`.
  `static class`
  `UnsynchronizedBufferedInputStream.Builder`
  Builds a new `UnsynchronizedBufferedInputStream`.
  `static class`
  `UnsynchronizedByteArrayInputStream.Builder`
  Builds a new `UnsynchronizedByteArrayInputStream`.
  `static class`
  `UnsynchronizedFilterInputStream.Builder`
  Builds a new `UnsynchronizedFilterInputStream`.
  `static class`
  `XmlStreamReader.Builder`
  Builds a new `XmlStreamWriter`.

- ## Uses of IOSupplier in org.apache.commons.io.monitor

  Classes in org.apache.commons.io.monitor that implement IOSupplier
  Modifier and Type
  Class
  Description
  `static final class`
  `FileAlterationObserver.Builder`
  Builds instances of `FileAlterationObserver`.

- ## Uses of IOSupplier in org.apache.commons.io.output

  Classes in org.apache.commons.io.output that implement IOSupplier
  Modifier and Type
  Class
  Description
  `static class`
  `ChunkedOutputStream.Builder`
  Builds a new `UnsynchronizedByteArrayOutputStream`.
  `static class`
  `DeferredFileOutputStream.Builder`
  Builds a new `DeferredFileOutputStream`.
  `static class`
  `FileWriterWithEncoding.Builder`
  Builds a new `FileWriterWithEncoding`.
  `static class`
  `LockableFileWriter.Builder`
  Builds a new `LockableFileWriter`.
  `static class`
  `ProxyOutputStream.Builder`
  Builds instances of `ProxyOutputStream`.
  `static final class`
  `RandomAccessFileOutputStream.Builder`
  Builds a new `RandomAccessFileOutputStream`.
  `static class`
  `UncheckedFilterOutputStream.Builder`
  Builds a new `UncheckedFilterOutputStream`.
  `static class`
  `UncheckedFilterWriter.Builder`
  Builds a new `UncheckedFilterWriter`.
  `static class`
  `UnsynchronizedByteArrayOutputStream.Builder`
  Builds a new `UnsynchronizedByteArrayOutputStream`.
  `static class`
  `WriterOutputStream.Builder`
  Builds a new `WriterOutputStream`.
  `static class`
  `XmlStreamWriter.Builder`
  Builds a new `XmlStreamWriter`.

- ## Uses of IOSupplier in org.apache.commons.io.serialization

  Classes in org.apache.commons.io.serialization that implement IOSupplier
  Modifier and Type
  Class
  Description
  `static class`
  `ValidatingObjectInputStream.Builder`
  Builds a new `ValidatingObjectInputStream`.