T - type of the itempublic class DefaultLineMapper<T> extends java.lang.Object implements LineMapper<T>, org.springframework.beans.factory.InitializingBean
LineMapper implementation consisting of tokenization of the line into FieldSet followed by
mapping to item. If finer grained control of exceptions is needed, the LineMapper interface should be
implemented directly.| Constructor and Description |
|---|
DefaultLineMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
T |
mapLine(java.lang.String line,
int lineNumber)
Implementations must implement this method to map the provided line to
the parameter type T.
|
void |
setFieldSetMapper(FieldSetMapper<T> fieldSetMapper) |
void |
setLineTokenizer(LineTokenizer tokenizer) |
public T mapLine(java.lang.String line, int lineNumber) throws java.lang.Exception
LineMappermapLine in interface LineMapper<T>line - to be mappedlineNumber - of the current linejava.lang.Exception - if error occurred while parsing.public void setLineTokenizer(LineTokenizer tokenizer)
public void setFieldSetMapper(FieldSetMapper<T> fieldSetMapper)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean