public class LookBehindRegexHolder extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_EXPANSION_BLOCK_SIZE |
static int |
DEFAULT_INITIAL_MAXIMUM_LENGTH |
| Constructor and Description |
|---|
LookBehindRegexHolder(String regex,
int initialMaximumLength,
int expansionBlockSize,
IntUnaryOperator computeInjectedRepetition)
Create a new
LookBehindRegexHolder instance. |
LookBehindRegexHolder(String regex,
IntUnaryOperator computeInjectedRepetition)
Create a new
LookBehindRegexHolder instance with the default
initial maximum length and expansion block size. |
| Modifier and Type | Method and Description |
|---|---|
Matcher |
matcher(CharSequence s)
Get a
Matcher against the specified CharSequence. |
public static final int DEFAULT_INITIAL_MAXIMUM_LENGTH
public static final int DEFAULT_EXPANSION_BLOCK_SIZE
public LookBehindRegexHolder(String regex, IntUnaryOperator computeInjectedRepetition)
LookBehindRegexHolder instance with the default
initial maximum length and expansion block size.regex - assumed to contain a %d Java format sequencecomputeInjectedRepetition - function to compute the injected number of repetitions to
inject at %d in regexpublic LookBehindRegexHolder(String regex, int initialMaximumLength, int expansionBlockSize, IntUnaryOperator computeInjectedRepetition)
LookBehindRegexHolder instance.regex - assumed to contain a %d Java format sequenceinitialMaximumLength - initial guessexpansionBlockSize - number of bytes by which to increase the maximum length when a
Matcher is requested for a larger message sizecomputeInjectedRepetition - function to compute the injected number of repetitions to
inject at %d in regexpublic Matcher matcher(CharSequence s)
Matcher against the specified CharSequence.s - MatcherCopyright © 2010–2020 The Apache Software Foundation. All rights reserved.