to top
Android APIs
Added in API level 1
public interface

FileFilter

java.io.FileFilter

Class Overview

An interface for filtering File objects based on their names or other information.

Summary

Public Methods
abstract boolean accept( File pathname)
Indicating whether a specific file should be included in a pathname list.

Public Methods

public abstract boolean accept (File pathname)

Added in API level 1

Indicating whether a specific file should be included in a pathname list.

Parameters
pathname the abstract file to check.
Returns
  • true if the file should be included, false otherwise.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.