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

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

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

This filter accepts Files that are hidden.

Example, showing how to print out a list of the current directory's hidden files: Based on code from Apache Commons IO version 2.01. The main difference is that this class filters objects that implement FileIf, not File.

See Also:
Serialized Form

Field Summary
static IOFileFilter HIDDEN
          Singleton instance of hidden filter
static IOFileFilter VISIBLE
          Singleton instance of visible filter
 
Method Summary
 boolean accept(FileIf file)
          Checks to see if the file is hidden.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIDDEN

public static final IOFileFilter HIDDEN
Singleton instance of hidden filter


VISIBLE

public static final IOFileFilter VISIBLE
Singleton instance of visible filter

Method Detail

accept

public boolean accept(FileIf file)
Checks to see if the file is hidden.

Specified by:
accept in interface IOFileFilter
Parameters:
file - the File to check
Returns:
true if the file is hidden, otherwise false.