[
https://issues.apache.org/jira/browse/LANG-374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548969
]
Niall Pemberton commented on LANG-374:
--------------------------------------
The same argument could also be made for the other "escape" methods in Lang -
for example you could make the same argument about an XML parser/writer. I
believe if these other escape methods are "in scope" for Lang then this one is
as well and the fact that people *might* request more shouldn't be used as a
reason to rule it out and any pressure to provide a full blown Csv parser is
easily resisted.
The use case, like all the other escape methods I imagine, is to write properly
escaped values when creating a CSV file. While some scenarios will need/want a
full blown CSV parser/writer for others (such as mine) it is overkill and
simple escape support is sufficient.
On Sebbs proposal to make it more generic - I don't have a need for it, but if
he wants to commit that change then I have no problem with that.
> Add escaping for CSV columns to StringEscapeUtils
> -------------------------------------------------
>
> Key: LANG-374
> URL: https://issues.apache.org/jira/browse/LANG-374
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Reporter: Niall Pemberton
> Assignee: Niall Pemberton
> Priority: Minor
> Fix For: 2.4
>
> Attachments: Lang-374-escapeCsv-v2.patch,
> LANG-374-escapeDelimited.patch, StringEscapeUtils_v3.patch,
> StringEscapeUtilsTest_v3.patch
>
>
> Add escaping for CSV columns to StringEscapeUtils.
> Further information on CSV columns available here:
> http://en.wikipedia.org/wiki/Comma-separated_values
> http://tools.ietf.org/html/rfc4180
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.