FileDocCategorySizeDatePackage
TrueFileFilter.javaAPI DocAndroid 1.5 API2159Wed May 06 22:42:46 BST 2009org.apache.commons.io.filefilter

TrueFileFilter

public class TrueFileFilter extends Object implements Serializable, IOFileFilter
A file filter that always returns true.
since
Commons IO 1.0
version
$Revision: 587978 $ $Date: 2007-10-24 20:36:51 +0100 (Wed, 24 Oct 2007) $
author
Stephen Colebourne

Fields Summary
public static final IOFileFilter
TRUE
Singleton instance of true filter.
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.
Constructors Summary
protected TrueFileFilter()
Restrictive consructor.


           
      
    
Methods Summary
public booleanaccept(java.io.File file)
Returns true.

param
file the file to check
return
true

        return true;
    
public booleanaccept(java.io.File dir, java.lang.String name)
Returns true.

param
dir the directory to check
param
name the filename
return
true

        return true;