Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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.