Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.io

Interface FilenameFilter

java.lang.Object
|
+--java.io.FilenameFilter


public interface FilenameFilter

This interface has one method which is used for filtering filenames returned in a directory listing. It is currently used by the File.list() method and by the filename dialog in AWT.

The method in this interface determines if a particular file should or should not be included in the file listing.

Authors:

Method Summary

booleanaccept(java.io.File dir, java.lang.String name)

This method determines whether or not a given file should be included in a directory listing.

Method Details

accept

public boolean accept(java.io.File dir, java.lang.String name)

This method determines whether or not a given file should be included in a directory listing.

Parameters:

Returns: