# 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`.
  `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`
  `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.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`
  `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`.