KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > io > FileFilter


1 /*
2  * @(#)FileFilter.java 1.11 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.io;
9
10
11 /**
12  * A filter for abstract pathnames.
13  *
14  * <p> Instances of this interface may be passed to the <code>{@link
15  * File#listFiles(java.io.FileFilter) listFiles(FileFilter)}</code> method
16  * of the <code>{@link java.io.File}</code> class.
17  *
18  * @since 1.2
19  */

20 public interface FileFilter {
21
22     /**
23      * Tests whether or not the specified abstract pathname should be
24      * included in a pathname list.
25      *
26      * @param pathname The abstract pathname to be tested
27      * @return <code>true</code> if and only if <code>pathname</code>
28      * should be included
29      */

30     boolean accept(File JavaDoc pathname);
31
32 }
33
Popular Tags