public class escMatcher
extends java.lang.Object
Constructor and Description |
---|
escMatcher(int mode,
int compileFlag)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String inputString)
This method matches input string with patterns from Working set
|
java.util.ArrayList<Description> |
parse(java.lang.String inputString)
Main method.
|
java.util.ArrayList<Description> |
parse(java.lang.String inputString,
boolean ignorSequences)
Main method.
|
java.lang.String |
remove(java.lang.String inputString,
CF func)
Remove from input string control function's sequence only.
|
java.lang.String |
removeAll(java.lang.String inputString)
Remove from input string any control function's sequence only.
|
void |
setPatterns(CF... cmds)
Creates working set of patterns
|
public escMatcher(int mode, int compileFlag)
mode
- - parsing mode, 7-bit or 8-bitcompileFlag
- - control flags for 'Pattern.compile()' methodpublic void setPatterns(CF... cmds)
cmds
- - array of control functions for parsing; if it is absent then all functions are set uppublic boolean matches(java.lang.String inputString)
inputString
- string for matchingpublic java.lang.String remove(java.lang.String inputString, CF func)
inputString
- input stringfunc
- removed control functionpublic java.lang.String removeAll(java.lang.String inputString)
inputString
- input stringpublic java.util.ArrayList<Description> parse(java.lang.String inputString)
inputString
- parsed stringpublic java.util.ArrayList<Description> parse(java.lang.String inputString, boolean ignorSequences)
ignorSequences
is set FALSE then final indecies describe substrings
WITH control functions and their parameters. Otherwise (TRUE) substrings
include substrings (data) only.inputString
- parsed stringignorSequences
- affects to returned indecies