com.mindprod.filter
Class AllDirectoriesFilter

java.lang.Object
  extended by com.mindprod.filter.AllDirectoriesFilter
All Implemented Interfaces:
java.io.FilenameFilter

public final class AllDirectoriesFilter
extends java.lang.Object
implements java.io.FilenameFilter

FileFilter that accepts all directories, but not files.

Since:
2003-06-06
Version:
2.7 2010-11-22 - add optional invert parameter on a number of the filters.
Author:
Roedy Green, Canadian Mind Products

Constructor Summary
AllDirectoriesFilter()
          constructor
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Select only files with that pass muster
static void main(java.lang.String[] args)
          TEST harness
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllDirectoriesFilter

public AllDirectoriesFilter()
constructor

Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Select only files with that pass muster

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - the directory in which the file was found.
name - the name of the file
Returns:
true if and only if the name should be included in the file list; false otherwise.

main

public static void main(java.lang.String[] args)
TEST harness

Parameters:
args - not used