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 ofjava.nio.file
.org.apache.commons.io.filefilter 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 asInputStream
andReader
.org.apache.commons.io.output Provides implementations of output classes, such asOutputStream
andWriter
. -
-
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 java.lang.String
IOUtils. toString(IOSupplier<java.io.InputStream> input, java.nio.charset.Charset charset)
Gets the contents of anInputStream
from a supplier as a String using the specified character encoding.static java.lang.String
IOUtils. toString(IOSupplier<java.io.InputStream> input, java.nio.charset.Charset charset, IOSupplier<java.lang.String> defaultString)
Gets the contents of anInputStream
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 aFile
,Path
,Reader
,Writer
,InputStream
,OutputStream
, andURI
.static class
AbstractOrigin.ByteArrayOrigin
Abyte[]
origin.static class
AbstractOrigin.CharSequenceOrigin
ACharSequence
origin.static class
AbstractOrigin.FileOrigin
AFile
origin.static class
AbstractOrigin.InputStreamOrigin
AnInputStream
origin.static class
AbstractOrigin.OutputStreamOrigin
AnOutputStream
origin.static class
AbstractOrigin.PathOrigin
APath
origin.static class
AbstractOrigin.ReaderOrigin
AnReader
origin.static class
AbstractOrigin.URIOrigin
AURI
origin.static class
AbstractOrigin.WriterOrigin
AnWriter
origin.class
AbstractOriginSupplier<T,B extends AbstractOriginSupplier<T,B>>
Abstracts building an instance ofT
.class
AbstractStreamBuilder<T,B extends AbstractStreamBuilder<T,B>>
Abstracts building a typed instance ofT
.class
AbstractSupplier<T,B extends AbstractSupplier<T,B>>
Abstracts supplying an instance ofT
. -
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<java.io.InputStream> in, java.nio.file.Path target, java.nio.file.CopyOption... copyOptions)
Copies the InputStream from the supplier withFiles.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 newWildcardFileFilter
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(java.util.function.Supplier<? extends T> before)
Returns a composedIOFunction
that first applies thebefore
function to its input, and then applies this function to the result.default IOSupplier<R>
IOFunction. compose(IOSupplier<? extends T> before)
Returns a composedIOFunction
that first applies thebefore
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)
LikeStream.collect(java.util.function.Supplier, java.util.function.BiConsumer, java.util.function.BiConsumer)
.default IOSupplier<R>
IOFunction. compose(IOSupplier<? extends T> before)
Returns a composedIOFunction
that first applies thebefore
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, java.util.function.Supplier<java.lang.String> message)
Gets the result from an IO supplier. -
Uses of IOSupplier in org.apache.commons.io.input
-
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 newUnsynchronizedByteArrayOutputStream
instance.static class
DeferredFileOutputStream.Builder
Builds a newDeferredFileOutputStream
instance.static class
FileWriterWithEncoding.Builder
Builds a newFileWriterWithEncoding
instance.static class
LockableFileWriter.Builder
Builds a newLockableFileWriter
instance.static class
UncheckedFilterOutputStream.Builder
Builds a newUncheckedFilterOutputStream
instance.static class
UncheckedFilterWriter.Builder
Builds a newUncheckedFilterWriter
instance.static class
UnsynchronizedByteArrayOutputStream.Builder
Builds a newUnsynchronizedByteArrayOutputStream
instance.static class
WriterOutputStream.Builder
Builds a newWriterOutputStream
instance.static class
XmlStreamWriter.Builder
Builds a newXmlStreamWriter
instance.
-