Package org.apache.commons.io.filefilter Description

This package defines an interface (IOFileFilter) that combines both
FileFilter and FilenameFilter. Besides
that the package offers a series of ready-to-use implementations of the
IOFileFilter interface including implementation that allow you to combine
other such filters.

These boolean FilenameFilters can be nested, to allow arbitrary expressions.
For example, here is how one could print all non-directory files in the
current directory, starting with "A", and ending in ".java" or ".class":

This package also contains a utility class:
FileFilterUtils. It allows you to use all
file filters without having to put them in the import section. Here's how the
above example will look using FileFilterUtils: