For example, to print all files and directories in the current directory whose name starts with Test:
File dir = new File("."); String[] files = dir.list( new PrefixFileFilter("Test") ); for ( int i = 0; i < files.length; i++ ) { System.out.println(files[i]); }
@since Commons IO 1.0
@version $Revision: 155419 $ $Date: 2005-02-26 13:02:41 +0000 (Sat, 26 Feb 2005) $
@author Henri Yandell
@author Stephen Colebourne
@author Federico Barbieri
@author Serge Knystautas
@author Peter Donald
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |