# 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.output
Provides implementations of output classes, such as `OutputStream` and `Writer`.

- ## 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.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.OutputStreamOrigin`
  An `OutputStream` origin.
  `static class`
  `AbstractOrigin.PathOrigin`
  A `Path` origin.
  `static class`
  `AbstractOrigin.ReaderOrigin`
  An `Reader` origin.
  `static class`
  `AbstractOrigin.URIOrigin`
  A `URI` origin.
  `static class`
  `AbstractOrigin.WriterOrigin`
  An `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

  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` instance.
  `static class`
  `BufferedFileChannelInputStream.Builder`
  Builds a new `BufferedFileChannelInputStream` instance.
  `static class`
  `CharSequenceInputStream.Builder`
  Builds a new `CharSequenceInputStream` instance.
  `static class`
  `MemoryMappedFileInputStream.Builder`
  Builds a new `MemoryMappedFileInputStream` instance.
  `static class`
  `MessageDigestCalculatingInputStream.Builder`
  Deprecated.
  Builds a new `MessageDigestCalculatingInputStream` instance.
  `static class`
  `MessageDigestInputStream.Builder`
  Builds new `MessageDigestInputStream` instances.
  `static class`
  `QueueInputStream.Builder`
  Builds a new `QueueInputStream` instance.
  `static class`
  `RandomAccessFileInputStream.Builder`
  Builds a new `RandomAccessFileInputStream` instance.
  `static class`
  `ReadAheadInputStream.Builder`
  Builds a new `ReadAheadInputStream` instance.
  `static class`
  `ReaderInputStream.Builder`
  Builds a new `ReaderInputStream` instance.
  `static class`
  `ReversedLinesFileReader.Builder`
  Builds a new `ReversedLinesFileReader` instance.
  `static class`
  `Tailer.Builder`
  Builds a `Tailer` with default values.
  `static class`
  `UncheckedBufferedReader.Builder`
  Builds a new `UncheckedBufferedReader` instance.
  `static class`
  `UncheckedFilterInputStream.Builder`
  Builds a new `UncheckedFilterInputStream` instance.
  `static class`
  `UncheckedFilterReader.Builder`
  Builds a new `UncheckedFilterReader` instance.
  `static class`
  `UnsynchronizedBufferedInputStream.Builder`
  Builds a new `UnsynchronizedBufferedInputStream` instance.
  `static class`
  `UnsynchronizedByteArrayInputStream.Builder`
  Builds a new `UnsynchronizedByteArrayInputStream` instance.
  `static class`
  `UnsynchronizedFilterInputStream.Builder`
  Builds a new `UnsynchronizedFilterInputStream` instance.
  `static class`
  `XmlStreamReader.Builder`
  Builds a new `XmlStreamWriter` instance.

- ## 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` instance.
  `static class`
  `DeferredFileOutputStream.Builder`
  Builds a new `DeferredFileOutputStream` instance.
  `static class`
  `FileWriterWithEncoding.Builder`
  Builds a new `FileWriterWithEncoding` instance.
  `static class`
  `LockableFileWriter.Builder`
  Builds a new `LockableFileWriter` instance.
  `static class`
  `UncheckedFilterOutputStream.Builder`
  Builds a new `UncheckedFilterOutputStream` instance.
  `static class`
  `UncheckedFilterWriter.Builder`
  Builds a new `UncheckedFilterWriter` instance.
  `static class`
  `UnsynchronizedByteArrayOutputStream.Builder`
  Builds a new `UnsynchronizedByteArrayOutputStream` instance.
  `static class`
  `WriterOutputStream.Builder`
  Builds a new `WriterOutputStream` instance.
  `static class`
  `XmlStreamWriter.Builder`
  Builds a new `XmlStreamWriter` instance.