public class RegexLineTokenizer extends AbstractLineTokenizer
(.*?)(?: .*)* (.*)For the names:
Matcher.group(int)
names
Constructor and Description |
---|
RegexLineTokenizer() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
doTokenize(java.lang.String line) |
void |
setPattern(java.util.regex.Pattern pattern)
Sets the regex pattern to use.
|
void |
setRegex(java.lang.String regex)
Sets the regular expression to use.
|
hasNames, isStrict, setFieldSetFactory, setNames, setStrict, tokenize
protected java.util.List<java.lang.String> doTokenize(java.lang.String line)
doTokenize
in class AbstractLineTokenizer
public void setPattern(java.util.regex.Pattern pattern)
pattern
- Regular Expression patternpublic void setRegex(java.lang.String regex)
regex
- regular expression (as a String)