57 |
public interface FilenameFilter |
public interface FilenameFilter |
58 |
{ |
{ |
59 |
|
|
60 |
/** |
/** |
61 |
* This method determines whether or not a given file should be included |
* This method determines whether or not a given file should be included |
62 |
* in a directory listing. |
* in a directory listing. |
63 |
* |
* |
64 |
* @param dir The <code>File</code> instance for the directory being read |
* @param dir The <code>File</code> instance for the directory being read |
65 |
* @param name The name of the file to test |
* @param name The name of the file to test |
66 |
* |
* |
67 |
* @return <code>true</code> if the file should be included in the list, |
* @return <code>true</code> if the file should be included in the list, |
68 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
69 |
*/ |
*/ |
70 |
boolean |
boolean accept(File dir, String name); |
|
accept(File dir, String name); |
|
71 |
|
|
72 |
} // interface FilenameFilter |
} // interface FilenameFilter |
73 |
|
|