public class FileSpec extends Object
Constructor and Description |
---|
FileSpec(File filespec)
Constructor.
|
FileSpec(File filespec,
boolean caseSensative)
Constructor
|
public FileSpec(File filespec)
filespec
- public FileSpec(File filespec, boolean caseSensative)
filespec
- caseSensative
- public File[] getFiles()
public static boolean match(String pattern, 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.