FileDocCategorySizeDatePackage
DirectoryFileFilter.javaAPI DocApache James 2.3.12017Fri Jan 12 12:56:34 GMT 2007org.apache.james.util.io

DirectoryFileFilter

public class DirectoryFileFilter extends Object implements FilenameFilter
This filter accepts Files that are directories.

Eg., here is how to print out a list of the current directory's subdirectories:

File dir = new File(".");
String[] files = dir.list( new DirectoryFileFilter() );
for ( int i=0; i<files.length; i++ )
{
System.out.println(files[i]);
}
author
Avalon Development Team
version
$Revision: 494012 $ $Date: 2007-01-08 11:23:58 +0100 (Mo, 08 Jan 2007) $
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public booleanaccept(java.io.File file, java.lang.String name)

        return new File( file, name ).isDirectory();