org.springframework.batch.item.file.mapping
Class PassThroughLineMapper
java.lang.Object
org.springframework.batch.item.file.mapping.PassThroughLineMapper
- All Implemented Interfaces:
- LineMapper<String>
public class PassThroughLineMapper
- extends Object
- implements LineMapper<String>
Pass through LineMapper
useful for passing the original
String
back directly rather than a mapped object.
Method Summary |
String |
mapLine(String line,
int lineNumber)
Implementations must implement this method to map the provided line to
the parameter type T. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PassThroughLineMapper
public PassThroughLineMapper()
mapLine
public String mapLine(String line,
int lineNumber)
throws Exception
- Description copied from interface:
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.
- Specified by:
mapLine
in interface LineMapper<String>
- Parameters:
line
- to be mappedlineNumber
- of the current line
- Returns:
- mapped object of type T
- Throws:
Exception
- if error occured while parsing.
Copyright © 2013 SpringSource. All Rights Reserved.