Class PassThroughLineMapper
java.lang.Object
org.springframework.batch.item.file.mapping.PassThroughLineMapper
- All Implemented Interfaces:
LineMapper<String>
Pass through
LineMapper useful for passing the original String back
directly rather than a mapped object.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PassThroughLineMapper
public PassThroughLineMapper()
-
-
Method Details
-
mapLine
Description copied from interface:LineMapperImplementations must implement this method to map the provided line to the parameter type T. The line number represents the number of lines into a file the current line resides.- Specified by:
mapLinein interfaceLineMapper<String>- Parameters:
line- to be mappedlineNumber- of the current line- Returns:
- mapped object of type T
- Throws:
Exception- if error occurred while parsing.
-