|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.jhighlight.tools.FileUtils
public abstract class FileUtils
Collection of utility methods to work with files.
| Method Summary | |
|---|---|
static String |
getExtension(String fileName)
|
static ArrayList |
getFileList(File file,
Pattern[] included,
Pattern[] excluded)
Recursively traverse a directory hierachy and obtain a list of all absolute file names. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ArrayList getFileList(File file,
Pattern[] included,
Pattern[] excluded)
Regular expression patterns can be provided to explicitly include and exclude certain file names.
file - the directory whose file hierarchy will be traversedincluded - an array of regular expression patterns that will be
used to determine which files should be included; or
null if all files should be included
excluded - an array of regular expression patterns that will be
used to determine which files should be excluded; or
null if no files should be excluded
public static String getExtension(String fileName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||