The popular companion of JCL is Apache Commons project (https://commons.apache.org) that provides many libraries that compliment the JCL functionality. The classes of the org.apache.commons.io package are contained in the following root package and sub-packages:
- The org.apache.commons.io root package contains utility classes with static methods for common tasks, like a popular FileUtils and IOUtils classes described in the sections Class FileUtils and Class IOUtils, respectively
- The org.apache.commons.io.input package contains classes that support input based on InputStream and Reader implementations, like XmlStreamReader or ReversedLinesFileReader
- The org.apache.commons.io.output package contains classes that support output based on OutputStream and Writer implementations, like XmlStreamWriter or StringBuilderWriter
- The org.apache.commons.io.filefilter package contains classes that serve as file filters, like DirectoryFileFilter or RegexFileFilter
- The org.apache.commons.io.comparator package contains various implementations of java.util.Comparator for files, like NameFileComparator
- The org.apache.commons.io.serialization package provides a framework for controlling the deserialization of classes
- The org.apache.commons.io.monitor package allows monitoring filesystems and checking for a directory or file creating, updating, or deleting; one can launch the FileAlterationMonitor object as a thread and create an object of FileAlterationObserver that performs a check of the changes in the filesystem at the specified interval
Refer to Apache Commons project documentation (https://commons.apache.org) for more details.