org.incava.io

Class Find

public class Find extends Object

Support for find(1)-like behavior.
Method Summary
static voidgetFileList(List fileList, String name, String suffix)
Passes back a list of files.
static String[]getFileList(String[] names, String suffix)
Returns an array of files, collected from the names list.

Method Detail

getFileList

public static void getFileList(List fileList, String name, 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 String[] getFileList(String[] names, 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.