|
From: Trevor C. <pr...@se...> - 2003-10-19 20:29:47
|
This also applies to StringUtils.collectionToCommaDelimitedString With csv files, there is normally escaping if the field contains either a quote or a comma. For example: VALUE ESCAPED Bob Bob dog,cat "dog,cat" The "funny" house "The ""funny"" house" The current methods in StringUtils don't handle these cases. I have implemented this escaping for output, and I'm wondering if it's worth adding to Spring. If so, should I change the current methods to support escaping, or simply add escaping methods (such as String[] escapeArray(Object[] array) ). I'd prefer to modify the current methods, but want to make sure it won't adversely affect anyone. If we do change those methods, I will also fix the reverse methods. Trevor D. Cook |