For example, to retrieve and print all *.java
files in the current directory:
File dir = new File("."); String[] files = dir.list( new SuffixFileFilter(".java") ); 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|