Package oms3.ngmf.util
Class FilenameUtils
- java.lang.Object
-
- oms3.ngmf.util.FilenameUtils
-
public class FilenameUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static charEXTENSION_SEPARATORThe extension separator character.static StringEXTENSION_SEPARATOR_STRThe extension separator String.
-
Constructor Summary
Constructors Constructor Description FilenameUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanwildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity)Checks a filename to see if it matches the specified wildcard matcher allowing control over case-sensitivity.
-
-
-
Field Detail
-
EXTENSION_SEPARATOR
public static final char EXTENSION_SEPARATOR
The extension separator character.- See Also:
- Constant Field Values
-
EXTENSION_SEPARATOR_STR
public static final String EXTENSION_SEPARATOR_STR
The extension separator String.
-
-
Method Detail
-
wildcardMatch
public static boolean wildcardMatch(String filename, String wildcardMatcher, IOCase caseSensitivity)
Checks a filename to see if it matches the specified wildcard matcher allowing control over case-sensitivity.The wildcard matcher uses the characters '?' and '*' to represent a single or multiple wildcard characters.
- Parameters:
filename- the filename to match onwildcardMatcher- the wildcard string to match againstcaseSensitivity- what case sensitivity rule to use, null means case-sensitive- Returns:
- true if the filename matches the wilcard string
-
-