I am trying to edit an existing excel file using SXSSF. This excel may contain 1 Million records. I have to validate each row in excel and if the recors is invalid, append error message in the last column of row with errors in it. Validation process is done first, at that time i will note down the row number which is invalid. once all the validation is over, i'll take a copy of the file and write the error details at the end of each failed rows. Since SXSSF is write only, I am getting a null value when i tried to get the invalid row with the row number. Please suggest a better way to resolve it.
I came across some suggestions to use SAX + SXSSF to do it in the following threads.
poi read existing excel and edit with large data
How do i read and edit huge excel files using POI?
I know how to read excel using SAX. But dont know how to relate it with SXSSF and edit the excel.But it will be great if some one share a sample code.
Thanks in advance.