public class ExtensionMatcher extends StringMatcher
StringMatcher tests whether strings end in a given extension, ignoring
its case.| Constructor and Description |
|---|
ExtensionMatcher(java.lang.String extension)
Creates a new StringMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(java.lang.String string,
int beginOffset,
int endOffset)
Checks whether the given substring matches.
|
matchespublic ExtensionMatcher(java.lang.String extension)
extension - the extension against which strings will be matched.protected boolean matches(java.lang.String string,
int beginOffset,
int endOffset)
StringMatchermatches in class StringMatcherstring - the string to match.beginOffset - the start offset of the substring (inclusive).endOffset - the end offset of the substring (exclusive).