Interface LineMapper<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      TmapLine​(java.lang.String line, int lineNumber)
      Implementations must implement this method to map the provided line to the parameter type T.
    • Method Detail

      • mapLine

        T mapLine​(java.lang.String line,
                  int lineNumber)
           throws java.lang.Exception
        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.
        Parameters:
        line - to be mapped
        lineNumber - of the current line
        Returns:
        mapped object of type T
        Throws:
        java.lang.Exception - if error occurred while parsing.