Android
java.io
public interface

java.io.FilenameFilter

java.io.FilenameFilter

FilenameFilter is an interface which declares methods for filtering file names in the list method of File.

Summary

Public Methods

          boolean  accept(File dir, String filename)
Returns a boolean if a specific filename matches a filter.

Details

Public Methods

public boolean accept(File dir, String filename)

Returns a boolean if a specific filename matches a filter.

Parameters

dir the directory in which the filename was found.
filename the name of the file in dir to test.

Returns

  • boolean true if the filename matches the filter and can be included in the list, false otherwise.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48