Uses of Interface
org.apache.commons.io.function.IOSupplier
Packages that use IOSupplier
Package
Description
Provides classes for working with streams, readers, writers and files.
Provides classes to implement IO builders.
Provides extensions in the realm of
java.nio.file
.Provides IO-only related functional interfaces for lambda expressions and method references.
Provides implementations of input classes, such as
InputStream
and Reader
.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 IOSupplierModifier and TypeMethodDescriptionstatic String
IOUtils.toString
(IOSupplier<InputStream> input, Charset charset) Gets the contents of anInputStream
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 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 IOSupplierModifier and TypeClassDescriptionclass
AbstractOrigin<T,
B extends AbstractOrigin<T, B>> Abstracts the origin of data for builders like aFile
,Path
,Reader
,Writer
,InputStream
,OutputStream
, andURI
.static class
Abyte[]
origin.static class
ACharSequence
origin.static class
AFile
origin.static class
AnInputStream
origin.static class
AnOutputStream
origin.static class
APath
origin.static class
AnReader
origin.static class
AURI
origin.static class
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 IOSupplierModifier and TypeMethodDescriptionstatic long
PathUtils.copy
(IOSupplier<InputStream> in, Path target, 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 -
Uses of IOSupplier in org.apache.commons.io.function
Methods in org.apache.commons.io.function that return IOSupplierModifier and TypeMethodDescriptiondefault IOSupplier
<R> 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 IOSupplierModifier and TypeMethodDescriptiondefault <R> R
IOStream.collect
(IOSupplier<R> supplier, IOBiConsumer<R, ? super T> accumulator, IOBiConsumer<R, R> combiner) 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, 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 IOSupplierModifier and TypeClassDescriptionstatic class
Builds a newAutoCloseInputStream
instance.static class
Builds a newBOMInputStream
instance.static class
Builds a newBufferedFileChannelInputStream
instance.static class
Builds a newCharSequenceInputStream
instance.static class
Builds a newMemoryMappedFileInputStream
instance.static class
Builds a newMessageDigestCalculatingInputStream
instance.static class
Builds a newQueueInputStream
instance.static class
Builds a newRandomAccessFileInputStream
instance.static class
Builds a newReadAheadInputStream
instance.static class
Builds a newReaderInputStream
instance.static class
Builds a newReversedLinesFileReader
instance.static class
Builds aTailer
with default values.static class
Builds a newUncheckedBufferedReader
instance.static class
Builds a newUncheckedFilterInputStream
instance.static class
Builds a newUncheckedFilterReader
instance.static class
Builds a newUnsynchronizedBufferedInputStream
instance.static class
Builds a newUnsynchronizedByteArrayInputStream
instance.static class
Builds a newUnsynchronizedFilterInputStream
instance.static class
Builds a newXmlStreamWriter
instance. -
Uses of IOSupplier in org.apache.commons.io.output
Classes in org.apache.commons.io.output that implement IOSupplierModifier and TypeClassDescriptionstatic class
Builds a newUnsynchronizedByteArrayOutputStream
instance.static class
Builds a newDeferredFileOutputStream
instance.static class
Builds a newFileWriterWithEncoding
instance.static class
Builds a newLockableFileWriter
instance.static class
Builds a newUncheckedFilterOutputStream
instance.static class
Builds a newUncheckedFilterWriter
instance.static class
Builds a newUnsynchronizedByteArrayOutputStream
instance.static class
Builds a newWriterOutputStream
instance.static class
Builds a newXmlStreamWriter
instance.