org.apache.commons.io.filefilter
Class TrueFileFilter
java.lang.Object
org.apache.commons.io.filefilter.TrueFileFilter
- FileFilter, FilenameFilter, IOFileFilter, Serializable
public class TrueFileFilter
extends java.lang.Object
A file filter that always returns true.
$Revision: 587978 $ $Date: 2007-10-24 20:36:51 +0100 (Wed, 24 Oct 2007) $
boolean | accept(File file) - Returns true.
|
boolean | accept(File dir, String name) - Returns true.
|
INSTANCE
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.
TRUE
public static final IOFileFilter TRUE
Singleton instance of true filter.
TrueFileFilter
protected TrueFileFilter()
Restrictive consructor.
accept
public boolean accept(File dir,
String name)
Returns true.
- accept in interface IOFileFilter
dir
- the directory to checkname
- the filename
Copyright (c) 2002-2009 Apache Software Foundation