|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.clapper.util.io.NotFileFilter
public class NotFileFilter
NotFileFilter 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());
FileFilter,
AndFileFilter,
OrFileFilter,
DirectoryFilter| Constructor Summary | |
|---|---|
NotFileFilter(java.io.FileFilter filter)
Create a new NotFileFilter that wraps the specified FileFilter. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File file)
Tests whether a file should be included in a file list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotFileFilter(java.io.FileFilter filter)
FileFilter.
filter - The FileFilter to wrap.| Method Detail |
|---|
public boolean accept(java.io.File file)
accept in interface java.io.FileFilterfile - The file to check for acceptance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||