mkodekar / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Provide a CSV serializer/deserializer? #813

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've hesitated to open this issue. The reason I did it anyway is that I'm both 
unsatisfied with the correctness (e. g. quote escaping) and API (I'd really 
embrace generics, iterables/collections instead of arrays, immutability etc.) 
of current implementations (I know of). Many projects seem to have stalled or 
don't look promising with regard to moving forward.

I'm totally aware to the fact that even though an RFC for CSV (comma-separated 
values) exists, there are various dialects. But then again, e. g. the Python 
stdlib's "csv" module [1] does a nice job of dealing with those.

OTOH, Guava provides a lot of great components to build a modern 
implementation, including char matchers, line processing, I/O suppliers, 
collections builders, unmodifiable iterators, tables etc. Those would support 
the creation of a clean implementation and API.

Oh, and last but not least, I'm convinced that Google must be doing something 
internally anyway to deal with CSV in lots and lots of places. Maybe there 
already is something that could be opened to the public?

[1] http://docs.python.org/library/csv.html#module-csv

Original issue reported on code.google.com by j...@nwsnet.de on 5 Dec 2011 at 2:08

GoogleCodeExporter commented 9 years ago

Original comment by fry@google.com on 5 Dec 2011 at 6:54

GoogleCodeExporter commented 9 years ago
I've slapped together my own implementation of this sort of thing, but an API 
thought out and designed to Guava standards, with proper escaping and 
everything, would be really cool.

Original comment by wasserman.louis on 7 Dec 2011 at 9:20

GoogleCodeExporter commented 9 years ago
(Possible issues might include the lack of any really solid standard.  
http://tools.ietf.org/html/rfc4180 is closest.)

Original comment by wasserman.louis on 7 Dec 2011 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 30 May 2012 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 22 Jun 2012 at 6:57

GoogleCodeExporter commented 9 years ago
Issue 1615 has been merged into this issue.

Original comment by cpov...@google.com on 18 Dec 2013 at 12:23

GoogleCodeExporter commented 9 years ago
Issue 1615 has been merged into this issue.

Original comment by cpov...@google.com on 18 Dec 2013 at 4:57

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:18

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09