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.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 asOutputStream
andWriter
.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 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.AbstractRandomAccessFileOrigin<T extends java.io.RandomAccessFile,B extends AbstractOrigin.AbstractRandomAccessFileOrigin<T,B>>
ARandomAccessFile
origin.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.IORandomAccessFileOrigin
AIORandomAccessFile
origin.static class
AbstractOrigin.OutputStreamOrigin
AnOutputStream
origin.static class
AbstractOrigin.PathOrigin
APath
origin.static class
AbstractOrigin.RandomAccessFileOrigin
ARandomAccessFile
origin.static class
AbstractOrigin.ReaderOrigin
AReader
origin.static class
AbstractOrigin.URIOrigin
AURI
origin.static class
AbstractOrigin.WriterOrigin
AWriter
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.monitor
Classes in org.apache.commons.io.monitor that implement IOSupplier Modifier and Type Class Description static class
FileAlterationObserver.Builder
Builds instances ofFileAlterationObserver
. -
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
.static class
DeferredFileOutputStream.Builder
Builds a newDeferredFileOutputStream
.static class
FileWriterWithEncoding.Builder
Builds a newFileWriterWithEncoding
.static class
LockableFileWriter.Builder
Builds a newLockableFileWriter
.static class
RandomAccessFileOutputStream.Builder
Builds a newRandomAccessFileOutputStream
.static class
UncheckedFilterOutputStream.Builder
Builds a newUncheckedFilterOutputStream
.static class
UncheckedFilterWriter.Builder
Builds a newUncheckedFilterWriter
.static class
UnsynchronizedByteArrayOutputStream.Builder
Builds a newUnsynchronizedByteArrayOutputStream
.static class
WriterOutputStream.Builder
Builds a newWriterOutputStream
.static class
XmlStreamWriter.Builder
Builds a newXmlStreamWriter
. -
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 newValidatingObjectInputStream
.
-