org.apache.james.util.io
Class DirectoryFileFilter
java.lang.Object
org.apache.james.util.io.DirectoryFileFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class DirectoryFileFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
This filter accepts File
s 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]);
}
- Since:
- 4.0
- Version:
- $Revision: 494012 $ $Date: 2007-01-08 10:23:58 +0000 (Mon, 08 Jan 2007) $
- Author:
- Avalon Development Team
Method Summary |
boolean |
accept(java.io.File file,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryFileFilter
public DirectoryFileFilter()
accept
public boolean accept(java.io.File file,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.