| 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 | |
| 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.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 as
OutputStream and
Writer. |
| org.apache.commons.io.serialization |
Provides a framework for controlling the deserialization of classes.
|
| Modifier and Type | Method and 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. |
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. |
| Modifier and Type | Class and Description |
|---|---|
static class |
AccumulatorPathVisitor.Builder
Builds instances of
AccumulatorPathVisitor. |
static class |
CountingPathVisitor.AbstractBuilder<T,B extends CountingPathVisitor.AbstractBuilder<T,B>>
Builds instances of
CountingPathVisitor. |
static class |
CountingPathVisitor.Builder
Builds instances of
CountingPathVisitor. |
protected static class |
SimplePathVisitor.AbstractBuilder<T,B extends AbstractSupplier<T,B>>
Abstracts builder for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
PathUtils.copy(IOSupplier<InputStream> in,
Path target,
CopyOption... copyOptions)
Copies the InputStream from the supplier with
Files.copy(InputStream, Path, CopyOption...). |
| Modifier and Type | Class and Description |
|---|---|
static class |
WildcardFileFilter.Builder
Builds a new
WildcardFileFilter instance. |
| Modifier and Type | Method and Description |
|---|---|
(package private) FileVisitResult |
AbstractFileFilter.get(IOSupplier<FileVisitResult> supplier)
Get file visit result from supplier.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
default IOSupplier<R> |
IOFunction.compose(java.util.function.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. |
| Modifier and Type | Method and 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.
|
(package private) static <T> T |
Erase.get(IOSupplier<T> supplier)
Delegates to the given
IOSupplier but erases its IOException for the compiler, while still throwing
the exception at runtime. |
static <T> T |
Uncheck.get(IOSupplier<T> supplier,
java.util.function.Supplier<String> message)
Gets the result from an IO supplier.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
FileAlterationObserver.Builder
Builds instances of
FileAlterationObserver. |
| Modifier and Type | Class and Description |
|---|---|
static class |
ValidatingObjectInputStream.Builder
Builds a new
ValidatingObjectInputStream. |