Top Description Methods
org.apache.commons.io.filefilter

public Interface IOFileFilter

extends FileFilter, FilenameFilter
Known Direct Implementers
org.apache.commons.io.filefilter.TrueFileFilter, org.apache.commons.io.filefilter.AbstractFileFilter, org.apache.commons.io.filefilter.FalseFileFilter
Imports
java.io.File, .FileFilter, .FilenameFilter

An interface which brings the FileFilter and FilenameFilter interfaces together.
Author
Stephen Colebourne
Since
Commons IO 1.0
Version
$Revision: 471628 $ $Date: 2006-11-06 05:06:45 +0100 (Mo, 06 Nov 2006) $

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if this file matches the test
accept
(File
the File to check
file
)

Redeclares java.io.FileFilter.accept.

Checks to see if the File should be accepted by this filter.
public boolean

Returns:

true if this file matches the test
accept
(File
the directory File to check
dir
,
String
the filename within the directory to check
name
)

Redeclares java.io.FilenameFilter.accept.

Checks to see if the File should be accepted by this filter.

Method Detail

acceptback to summary
public boolean accept(File file)

Redeclares java.io.FileFilter.accept.

Checks to see if the File should be accepted by this filter.

Defined in java.io.FileFilter.

Parameters
file:File

the File to check

Returns:boolean

true if this file matches the test

acceptback to summary
public boolean accept(File dir, String name)

Redeclares java.io.FilenameFilter.accept.

Checks to see if the File should be accepted by this filter.

Defined in java.io.FilenameFilter.

Parameters
dir:File

the directory File to check

name:String

the filename within the directory to check

Returns:boolean

true if this file matches the test