public abstract class AbstractLineTokenizer extends Object implements LineTokenizer
LineTokenizer
 implementations such as dealing with names and actual construction of
 FieldSet| Constructor and Description | 
|---|
| AbstractLineTokenizer() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract List<String> | doTokenize(String line) | 
| boolean | hasNames() | 
| protected boolean | isStrict()Provides access to the strict flag for subclasses if needed. | 
| void | setFieldSetFactory(FieldSetFactory fieldSetFactory)Factory for  FieldSetinstances. | 
| void | setNames(String[] names)Setter for column names. | 
| void | setStrict(boolean strict)Public setter for the strict flag. | 
| FieldSet | tokenize(String line)Yields the tokens resulting from the splitting of the supplied
  line. | 
protected String[] names
public void setStrict(boolean strict)
Range, columns, etc.) in LineTokenizer. 
 If false then lines with less tokens will be tolerated and padded with 
 empty columns, and lines with more tokens will 
 simply be truncated.strict - the strict flag to setprotected boolean isStrict()
public void setFieldSetFactory(FieldSetFactory fieldSetFactory)
FieldSet instances. Can be injected by clients to
 customize the default number and date formats.fieldSetFactory - the FieldSetFactory to setpublic void setNames(String[] names)
names - public boolean hasNames()
true if column names have been specifiedsetNames(String[])public FieldSet tokenize(String line)
line.tokenize in interface LineTokenizerline - the line to be tokenised (can be null)Copyright © 2014 Pivotal. All rights reserved.