FileDocCategorySizeDatePackage
FilenameFilter.javaAPI DocAndroid 1.5 API1560Wed May 06 22:41:04 BST 2009java.io

FilenameFilter

public interface FilenameFilter
An interface for filtering {@link File} objects based on their names or the directory they reside in.
see
File#list(FilenameFilter)
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public abstract booleanaccept(java.io.File dir, java.lang.String filename)
Indicates if a specific filename matches this filter.

param
dir the directory in which the {@code filename} was found.
param
filename the name of the file in {@code dir} to test.
return
{@code true} if the filename matches the filter and can be included in the list, {@code false} otherwise.
since
Android 1.0