public class PassThroughLineMapper extends java.lang.Object implements LineMapper<java.lang.String>
LineMapper
useful for passing the original
String
back directly rather than a mapped object.Constructor and Description |
---|
PassThroughLineMapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
mapLine(java.lang.String line,
int lineNumber)
Implementations must implement this method to map the provided line to
the parameter type T.
|
public java.lang.String mapLine(java.lang.String line, int lineNumber) throws java.lang.Exception
LineMapper
mapLine
in interface LineMapper<java.lang.String>
line
- to be mappedlineNumber
- of the current linejava.lang.Exception
- if error occurred while parsing.