类 PassThroughLineMapper

  • 所有已实现的接口:
    LineMapper<java.lang.String>

    public class PassThroughLineMapper
    extends java.lang.Object
    implements LineMapper<java.lang.String>
    Pass through LineMapper useful for passing the original String back directly rather than a mapped object.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      java.lang.StringmapLine​(java.lang.String line, int lineNumber)
      Implementations must implement this method to map the provided line to the parameter type T.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • 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 mapped
        lineNumber - of the current line
        返回:
        mapped object of type T
        抛出:
        java.lang.Exception - if error occurred while parsing.