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

public Class TrueFileFilter

extends Object
implements IOFileFilter
Class Inheritance
All Implemented Interfaces
org.apache.commons.io.filefilter.IOFileFilter, java.io.FilenameFilter, java.io.FileFilter
Imports
java.io.File

A file filter that always returns true.
Author
Stephen Colebourne
Since
Commons IO 1.0
Version
$Revision: 471628 $ $Date: 2006-11-06 05:06:45 +0100 (Mo, 06 Nov 2006) $

Field Summary

Modifier and TypeField and Description
public static final IOFileFilter
INSTANCE

Singleton instance of true filter.

public static final IOFileFilter
TRUE

Singleton instance of true filter.

Constructor Summary

AccessConstructor and Description
protected
TrueFileFilter()

Restrictive consructor.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true
accept
(File
the file to check
file
)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns true.
public boolean

Returns:

true
accept
(File
the directory to check
dir
,
String
the filename
name
)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns true.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final IOFileFilter INSTANCE

Singleton instance of true filter. Please use the identical TrueFileFilter.TRUE constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.

TRUEback to summary
public static final IOFileFilter TRUE

Singleton instance of true filter.

Since
Commons IO 1.3

Constructor Detail

TrueFileFilterback to summary
protected TrueFileFilter()

Restrictive consructor.

Method Detail

acceptback to summary
public boolean accept(File file)

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns true.

Parameters
file:File

the file to check

Returns:boolean

true

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

Implements org.apache.commons.io.filefilter.IOFileFilter.accept.

Returns true.

Parameters
dir:File

the directory to check

name:String

the filename

Returns:boolean

true