FilenameFilter as input and inverts the selection. This is used in retrieving files that are not accepted by a filter. Eg., here is how one could use InvertedFileFilter
in conjunction with {@link org.apache.avalon.excalibur.io.ExtensionFileFilter} to print all files not ending in.bak
or .BAK
in the current directory:
File dir = new File("."); String[] files = dir.list( new InvertedFileFilter( new ExtensionFileFilter( new String[]{".bak", ".BAK"} ) ) ); for ( int i=0; i<files.length; i++ ) { System.out.println(files[i]); }
@author Harmeet Bedi
@version CVS $Revision: 1.4 $ $Date: 2003/03/22 12:46:24 $
@since 4.0
FilenameFilter as input and inverts the selection. This is used in retrieving files that are not accepted by a filter.
@author Avalon Development Team
@version CVS $Revision: 494012 $ $Date: 2007-01-08 10:23:58 +0000 (Mon, 08 Jan 2007) $
@since 4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|