I am not sure why Spring Batch team make FieldSet final. This decision limits customized formatting. For example, some of my client send Date field as CCYYMMDD. When they do not have a valid date, they put "00000000" and readDate will generate bad results (no exception). I would like to overwrite readDate to handle it correctly.
Also, our client is encoding numbers as IBM numeric so the last digits is symbols like "{", "A", etc. I would like to overwrite readDecimal to handle it correctly.
From design perspective, why not allowing extending FieldSet?
Thanks


Reply With Quote