org.clapper.util.io
Class NotFileFilter
- java.lang.Object
-
- org.clapper.util.io.NotFileFilter
-
- All Implemented Interfaces:
- java.io.FileFilter
public class NotFileFilter extends java.lang.Object implements java.io.FileFilterNotFileFilter is a FileFilter that wraps another FileFilter and negates the sense of the wrapped filter's accept() method. This class conceptually provides a logical "NOT" operator for file filters. For example, the following code fragment will create a filter that finds all files that are not directories.NotFileFilter filter = new NotFileFilter (new DirectoryFilter());
- See Also:
FileFilter,AndFileFilter,OrFileFilter,DirectoryFilter
-
-
Constructor Summary
Constructors Constructor and Description NotFileFilter(java.io.FileFilter filter)Create a new NotFileFilter that wraps the specifiedFileFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanaccept(java.io.File file)Tests whether a file should be included in a file list.
-
DMelt 3.0 © DataMelt by jWork.ORG