org.incava.io
Class Find

java.lang.Object
  extended by org.incava.io.Find

public class Find
extends java.lang.Object

Support for find(1)-like behavior.


Constructor Summary
Find()
           
 
Method Summary
static void getFileList(java.util.List fileList, java.lang.String name, java.lang.String suffix)
          Passes back a list of files.
static java.lang.String[] getFileList(java.lang.String[] names, java.lang.String suffix)
          Returns an array of files, collected from the names list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Find

public Find()
Method Detail

getFileList

public static void getFileList(java.util.List fileList,
                               java.lang.String name,
                               java.lang.String suffix)
Passes back a list of files. Directories are processed recursively, collecting files with the suffix of suffix. If name refers to a file, it is simply added to the list.


getFileList

public static java.lang.String[] getFileList(java.lang.String[] names,
                                             java.lang.String suffix)
Returns an array of files, collected from the names list. Directories are processed recursively, collecting files with suffix. If name refers to a file, it is simply added to the list.