org.jwarp.util.filter
Class DirectoryFileFilter

java.lang.Object
  |
  +--org.jwarp.util.filter.DirectoryFileFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class DirectoryFileFilter
extends java.lang.Object
implements java.io.FilenameFilter

This filters files based if not a directory.

Author:
Anatole Tresch

Constructor Summary
DirectoryFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file, java.lang.String name)
          Implementing the main interface method for filtering files.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFileFilter

public DirectoryFileFilter()
Method Detail

accept

public boolean accept(java.io.File file,
                      java.lang.String name)
Implementing the main interface method for filtering files. This returns true if the file given is a directory.
Specified by:
accept in interface java.io.FilenameFilter
Parameters:
The - file
name - The name
Returns:
true if the file should be shown within the selection

©   O R C A   S y s t e m s