An AndFileFilter contains logically ANDs other java.io.FileFilter objects. When its {@link #accept accept()}method is called, the AndFileFilter object passes the file through the contained filters. The file is only accepted if it is accepted by all contained filters. This class conceptually provides a logical "AND" operator for file filters.
The contained filters are applied in the order they were added to the AndFileFilter object. This class's {@link #accept accept()}method stops looping over the contained filters as soon as it encounters one whose accept() method returns false (implementing a "short-circuited AND" operation.)
@see FileFilter @see OrFileFilter @see NotFileFilter @see AndFilenameFilter @see RegexFileFilter @version $Revision: 5812 $ @author Copyright © 2004-2007 Brian M. Clapper
|
|