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, tokenizeprotected List<String> doTokenize(String line)
doTokenize in class AbstractLineTokenizerpublic void setPattern(Pattern pattern)
pattern - Regular Expression patternpublic void setRegex(String regex)
regex - regular expression (as a String)Copyright © 2014 Pivotal. All rights reserved.