类 PassThroughLineMapper
- java.lang.Object
- org.springframework.batch.item.file.mapping.PassThroughLineMapper
- 所有已实现的接口:
LineMapper<java.lang.String>
public class PassThroughLineMapper extends java.lang.Object implements LineMapper<java.lang.String>
Pass throughLineMapper
useful for passing the originalString
back directly rather than a mapped object.
构造器概要
构造器 构造器 说明 PassThroughLineMapper()
构造器详细资料
PassThroughLineMapper
public PassThroughLineMapper()
方法详细资料
mapLine
public java.lang.String mapLine(java.lang.String line, int lineNumber) throws java.lang.Exception
从接口复制的说明:LineMapper
Implementations 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.- 指定者:
mapLine
在接口中LineMapper<java.lang.String>
- 参数:
line
- to be mappedlineNumber
- of the current line- 返回:
- mapped object of type T
- 抛出:
java.lang.Exception
- if error occurred while parsing.