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