Interface CSVImporterListener
public interface CSVImporterListener
Listener for the CSVImporter object.
-
Method Summary
Modifier and TypeMethodDescriptionvoidimportComplete(String fileName) Called when a CSV file has been successfully imported.voidparsingError(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.voidsessionCreated(String fileName, Session session) Called when a new session is created from a CSV file.
-
Method Details
-
importComplete
Called when a CSV file has been successfully imported.- Parameters:
fileName- csv file name
-
sessionCreated
-
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 namecsvRecordIndex- row index in the CSV filefieldIndex- column index in the CSV filecharPositionInField- character position in the fieldcsvColumnType- type of the columnsession- the session being imported intorecordIndexInSession- index of the record in the sessione- the exception that was thrown
-