public class FileSpec
extends java.lang.Object
| Constructor and Description |
|---|
FileSpec(java.io.File filespec)
Constructor.
|
FileSpec(java.io.File filespec,
boolean caseSensative)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File[] |
getFiles()
Get the files matching the filespec.
|
static boolean |
match(java.lang.String pattern,
java.lang.String str,
boolean isCaseSensitive)
Tests whether or not a string matches against a pattern.
|
public FileSpec(java.io.File filespec)
filespec - public FileSpec(java.io.File filespec,
boolean caseSensative)
filespec - caseSensative - public java.io.File[] getFiles()
public static boolean match(java.lang.String pattern,
java.lang.String str,
boolean isCaseSensitive)
pattern - The pattern to match against.
Must not be null.str - The string which must be matched against the pattern.
Must not be null.isCaseSensitive - Whether or not matching should be performed
case sensitively.true if the string matches against the pattern,
or false otherwise.