39 |
package java.io; |
package java.io; |
40 |
|
|
41 |
/** |
/** |
42 |
* This interface has one method which is used for filtering pathnames |
* This interface has one method which is used for filtering pathnames |
43 |
* returned in a pathname listing. It is currently used by the |
* returned in a pathname listing. It is currently used by the |
44 |
* <code>File.listFiles()</code> method. |
* <code>File.listFiles()</code> method. |
45 |
* <p> |
* <p> |
46 |
* The method in this interface determines if a particular pathname should |
* The method in this interface determines if a particular pathname should |
47 |
* or should not be included in the pathname listing. |
* or should not be included in the pathname listing. |
48 |
* |
* |
49 |
* @author Aaron M. Renn (arenn@urbanophile.com) |
* @author Aaron M. Renn (arenn@urbanophile.com) |
50 |
*/ |
*/ |
51 |
public interface FileFilter |
public interface FileFilter |
52 |
{ |
{ |
53 |
|
|
54 |
/** |
/** |
55 |
* This method determines whether or not a given pathname should be included |
* This method determines whether or not a given pathname should be included |
56 |
* in a pathname listing. |
* in a pathname listing. |
57 |
* |
* |
58 |
* @param pathname The pathname to test |
* @param pathname The pathname to test |
59 |
* |
* |
60 |
* @return <code>true</code> if the path should be included in the list, |
* @return <code>true</code> if the path should be included in the list, |
61 |
* <code>false</code> otherwise. |
* <code>false</code> otherwise. |
62 |
*/ |
*/ |
63 |
public abstract boolean accept(File pathname); |
public abstract boolean accept(File pathname); |
64 |
|
|
65 |
} // interface FileFilter |
} // interface FileFilter |