com.armatiek.infofuze.stream.filesystem.filefilter
Class FalseFileFilter

java.lang.Object
  extended by com.armatiek.infofuze.stream.filesystem.filefilter.FalseFileFilter
All Implemented Interfaces:
IOFileFilter, java.io.Serializable

public class FalseFileFilter
extends java.lang.Object
implements IOFileFilter, java.io.Serializable

A file filter that always returns false. Based on code from Apache Commons IO version 2.01. The main difference is that this class filters objects that implement FileIf, not File. Original author Stephen Colebourne

See Also:
Serialized Form

Field Summary
static IOFileFilter FALSE
          Singleton instance of false filter.
static IOFileFilter INSTANCE
          Singleton instance of false filter.
 
Method Summary
 boolean accept(FileIf file)
          Returns false.
 boolean accept(FileIf dir, java.lang.String name)
          Returns false.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FALSE

public static final IOFileFilter FALSE
Singleton instance of false filter.


INSTANCE

public static final IOFileFilter INSTANCE
Singleton instance of false filter. Please use the identical FalseFileFilter.FALSE constant. The new name is more JDK 1.5 friendly as it doesn't clash with other values when using static imports.

Method Detail

accept

public boolean accept(FileIf file)
Returns false.

Specified by:
accept in interface IOFileFilter
Parameters:
file - the file to check
Returns:
false

accept

public boolean accept(FileIf dir,
                      java.lang.String name)
Returns false.

Parameters:
dir - the directory to check
name - the filename
Returns:
false