public abstract class FileUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getExtension(java.lang.String fileName) |
static java.util.ArrayList |
getFileList(java.io.File file,
java.util.regex.Pattern[] included,
java.util.regex.Pattern[] excluded)
Recursively traverse a directory hierachy and obtain a list of all
absolute file names.
|
public static java.util.ArrayList getFileList(java.io.File file, java.util.regex.Pattern[] included, java.util.regex.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 java.lang.String getExtension(java.lang.String fileName)
Copyright © 2004-2006 Uwyn bvba/sprl and Omnicore Software. All Rights Reserved.