KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > monitorenter > gui > chart > io > INameFilter


1 /*
2  *
3  * INameFilter.java jbuzzer
4  * Copyright (C) Achim Westermann, created on 03.07.2004, 22:18:53
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  *
20  * If you modify or optimize the code in a useful way please let me know.
21  * Achim.Westermann@gmx.de
22  *
23  */

24 package info.monitorenter.gui.chart.io;
25
26 /**
27  * <p>
28  * A story on the side: There are:
29  * <ul>
30  * <li>{@link java.io.FileFilter}
31  * <li>{@link java.io.FilenameFilter}
32  * <li>{@link javax.swing.filechooser.FileFilter}
33  * </ul>
34  * </p>
35  * <p>
36  * Dumb all over hein. Well here's another one. Because we cannot stick to File
37  * instances when working with URL's .
38  * </p>
39  *
40  * @author <a HREF="mailto:Achim.Westermann@gmx.de">Achim Westermann </a>
41  *
42  * @version $Revision: 1.1 $
43  *
44  */

45 public interface INameFilter {
46   /**
47    * Accept the file denoted by the given url String.
48    * <p>
49    *
50    * @param urlstring
51    * a String in url format denoting a file.
52    *
53    * @return true if the file denoted by the given url String is accepted.
54    *
55    */

56   public boolean accept(String JavaDoc urlstring);
57
58 }
59
Popular Tags