ptolemy.backtrack.util
Class PathFinder.DirectoryFilter

java.lang.Object
  extended by ptolemy.backtrack.util.PathFinder.DirectoryFilter
All Implemented Interfaces:
java.io.FileFilter
Enclosing class:
PathFinder

public static class PathFinder.DirectoryFilter
extends java.lang.Object
implements java.io.FileFilter

Filter out all the files in a directory, except for sub-directories.

Since:
Ptolemy II 5.1
Version:
$Id: PathFinder.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Thomas Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Constructor Summary
PathFinder.DirectoryFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Accept only directories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinder.DirectoryFilter

public PathFinder.DirectoryFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Accept only directories.

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - The file to be inspected.
Returns:
true if the file corresponds to a directory.