Interface CSVImporterListener


public interface CSVImporterListener
Listener for the CSVImporter object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when a CSV file has been successfully imported.
    void
    parsingError(String fileName, int csvRecordIndex, int fieldIndex, int charPositionInField, CSVColumnType csvColumnType, Session session, int recordIndexInSession, Exception e)
    Called when a CSV file has ae parsing error.
    void
    sessionCreated(String fileName, Session session)
    Called when a new session is created from a CSV file.
  • Method Details

    • importComplete

      void importComplete(String fileName)
      Called when a CSV file has been successfully imported.
      Parameters:
      fileName - csv file name
    • sessionCreated

      void sessionCreated(String fileName, Session session)
      Called when a new session is created from a CSV file.
      Parameters:
      fileName - csv file name
      session - the new session created
    • parsingError

      void parsingError(String fileName, int csvRecordIndex, int fieldIndex, int charPositionInField, CSVColumnType csvColumnType, Session session, int recordIndexInSession, Exception e)
      Called when a CSV file has ae parsing error.
      Parameters:
      fileName - csv file name
      csvRecordIndex - row index in the CSV file
      fieldIndex - column index in the CSV file
      charPositionInField - character position in the field
      csvColumnType - type of the column
      session - the session being imported into
      recordIndexInSession - index of the record in the session
      e - the exception that was thrown