public final class Matcher extends Object
This is a utility class to match file globs. The class has been derived from org.apache.tools.ant.types.selectors.SelectorUtils.
All methods are static.
|Constructor and Description|
|Modifier and Type||Method and Description|
Tests whether or not a string matches against a pattern.
Tests whether or not a given file name matches any file name pattern in the given set.
patternSet- The pattern set to match against. Must not be
fileName- The file name to match, as a String. Must not be
null. It must be just a file name, without a path.
trueif any pattern in the set matches against the file name, or
match(String, String, boolean)
pattern- The pattern to match against. Must not be
str- The string which must be matched against the pattern. Must not be
caseSensitive- Whether or not matching should be performed case sensitively.
trueif the string matches against the pattern, or
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.