Sanitize cell values with SuperCSV
What is the best way to sanitize fields from a csv in supercsv? For
example the First_Name column: trim the field, capitalize the first
letter, remove various characters (quotes, commas, asterisks etc). Is it
to write a custom CellProcessor like FmtName()? Maybe another one for
FmtEmail() that lowercases everything, removes certain invalid characters?
No comments:
Post a Comment