public class FilenameUtils extends Object
Constructor and Description |
---|
FilenameUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
wildcardMatch(String fileName,
String wildcardMatcher,
IOCase ioCase)
Checks a fileName to see if it matches the specified wildcard matcher
allowing control over case-sensitivity.
|
public static boolean wildcardMatch(String fileName, String wildcardMatcher, IOCase ioCase)
The wildcard matcher uses the characters '?' and '*' to represent a single or multiple (zero or more) wildcard characters. N.B. the sequence "*?" does not work properly at present in match strings.
fileName
- the fileName to match onwildcardMatcher
- the wildcard string to match againstioCase
- what case sensitivity rule to use, null means case-sensitiveCopyright © 2004–2025 Apache MINA Project. All rights reserved.