com.mchange.v2.io
Class DirectoryDescentUtils

java.lang.Object
  extended by com.mchange.v2.io.DirectoryDescentUtils

public final class DirectoryDescentUtils
extends Object


Method Summary
static void addSubtree(File root, FileFilter filter, boolean canonical, Collection addToMe)
           
static FileIterator depthFirstEagerDescent(File root)
           
static FileIterator depthFirstEagerDescent(File root, FileFilter filter, boolean canonical)
           
static void main(String[] argv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

depthFirstEagerDescent

public static FileIterator depthFirstEagerDescent(File root)
                                           throws IOException
Returns:
FileIterator over all files and dierctories beneath root
Throws:
IOException

depthFirstEagerDescent

public static FileIterator depthFirstEagerDescent(File root,
                                                  FileFilter filter,
                                                  boolean canonical)
                                           throws IOException
Parameters:
canonical - file paths will be canonicalized if true
Returns:
FileIterator over all files and directories beneath root that match filter.
Throws:
IOException

addSubtree

public static void addSubtree(File root,
                              FileFilter filter,
                              boolean canonical,
                              Collection addToMe)
                       throws IOException
Throws:
IOException

main

public static void main(String[] argv)