类 DefaultLineMapper<T>

  • 类型参数:
    T - type of the item
    所有已实现的接口:
    LineMapper<T>, org.springframework.beans.factory.InitializingBean

    public class DefaultLineMapper<T>
    extends java.lang.Object
    implements LineMapper<T>, org.springframework.beans.factory.InitializingBean
    Two-phase LineMapper implementation consisting of tokenization of the line into FieldSet followed by mapping to item. If finer grained control of exceptions is needed, the LineMapper interface should be implemented directly.
    作者:
    Robert Kasanicky, Lucas Ward
    • 方法详细资料

      • mapLine

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

        public void afterPropertiesSet()
        指定者:
        afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean