static final class StrMatcher.CharSetMatcher extends StrMatcher
StrMatcher.CharMatcher, StrMatcher.CharSetMatcher, StrMatcher.NoMatcher, StrMatcher.StringMatcher, StrMatcher.TrimMatcher| Modifier and Type | Field and Description |
|---|---|
private char[] |
chars
The set of characters to match.
|
| Constructor and Description |
|---|
CharSetMatcher(char[] chars)
Constructor that creates a matcher from a character array.
|
| Modifier and Type | Method and Description |
|---|---|
int |
isMatch(char[] buffer,
int pos,
int bufferStart,
int bufferEnd)
Returns whether or not the given character matches.
|
charMatcher, charSetMatcher, charSetMatcher, commaMatcher, doubleQuoteMatcher, isMatch, noneMatcher, quoteMatcher, singleQuoteMatcher, spaceMatcher, splitMatcher, stringMatcher, tabMatcher, trimMatcherCharSetMatcher(char[] chars)
chars - the characters to match, must not be nullpublic int isMatch(char[] buffer,
int pos,
int bufferStart,
int bufferEnd)
isMatch in class StrMatcherbuffer - the text content to match against, do not changepos - the starting position for the match, valid for bufferbufferStart - the first active index in the buffer, valid for bufferbufferEnd - the end index of the active buffer, valid for buffer