<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.io.FilenameFilter
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.Externalizable.html#_top_">Previous</a>  <a href="java.io.ObjectInput.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.io.FilenameFilter
</h1>
<dl>
  <dt> public interface <b>FilenameFilter</b>
</dl>
Instances of classes that implement this interface are used to 
 filter filenames. These instances are used to filter directory 
 listings in the <code>list</code> method of class 
 <code>File</code>, and by the Abstract Window Toolkit's file 
 dialog component.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.FileDialog.html#setFilenameFilter(java.io.FilenameFilter)">setFilenameFilter</a>, <a href="java.io.File.html#_top_">File</a>, <a href="java.io.File.html#list(java.io.FilenameFilter)">list</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#accept(java.io.File, java.lang.String)"><b>accept</b></a>(File, String)
  <dd>  Tests if a specified file should be included in a file list.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="accept(java.io.File, java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="accept"><b>accept</b></a>
<pre>
 public abstract boolean accept(<a href="java.io.File.html#_top_">File</a> dir,
                                <a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Tests if a specified file should be included in a file list.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> dir - the directory in which the file was found.
    <dd> name - the name of the file.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the name should be included in the file
          list; <code>false</code> otherwise.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.Externalizable.html#_top_">Previous</a>  <a href="java.io.ObjectInput.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
