commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Dawson <tim.daw...@idsgrp.com>
Subject RE: CSV parser & printer
Date Fri, 17 Sep 2004 15:28:26 GMT
I probably should have said up front that I had written this expressly
because the ostermiller implementation is inaccessible to me due to the GPL
license.

> http://www.osjava.org/genjava/multiproject/gj-csv/

I didn't run across that in my search; I'll have to check it out more in
depth.  One thing I like off the top is being able to read field-by-field;
my implementation currently grabs a line at a time, but I can see on a very
wide file that this would be necessary.

Regardless, is there any interest in placing this in commons? I know my
company prefers to minimize the number of sources for tools, and having this
in commons would have been helpful for me. If there's interest I'll clean up
the code (add apache banner, format according to accepted styles, that sort
of thing) and send it out for review and voting.

> IO is the first place I'd look for csv handling (though possibly only
> because I implement them as Reader/Writer style classes). Others have
> suggested Codec in the past.

Yeah, there's no clear winner between the two. They're not exactly
reader/writers which is why I named them parser & printer -- just so nobody
expected them to be subclasses of java.io.Reader & java.io.Writer. 

Tim 



> -----Original Message-----
> From: Henri Yandell [mailto:flamefew@gmail.com]
> Sent: Thursday, September 16, 2004 6:51 PM
> To: Jakarta Commons Developers List; Dion Gillard
> Subject: Re: CSV parser & printer
> 
> http://www.osjava.org/genjava/multiproject/gj-csv/
> 
> is available as well if it has any useful ideas that could be merged in.
> 
> IO is the first place I'd look for csv handling (though possibly only
> because I implement them as Reader/Writer style classes). Others have
> suggested Codec in the past.
> 
> Hen
> 
> 
> On Fri, 17 Sep 2004 09:43:11 +1000, Dion Gillard <dion.gillard@gmail.com>
> wrote:
> > The licensing on those is GPL.
> >
> >
> >
> >
> > On Thu, 16 Sep 2004 14:32:20 -0400, Jung, Eric <eric.jung@arbella.com>
> wrote:
> > > Tim,
> > > Someone beat you to the punch. There's already an implementation at:
> > >
> > > http://ostermiller.org/utils/CSV.html
> > > and for excel:
> > > http://ostermiller.org/utils/ExcelCSV.html
> > >
> > > I haven't used them so I don't know how well they work.
> > >
> > > That said, these classes are on the lesser-known Giant Java Tree, not
> > > Commons, and are licensed under GPL, not LGPL :( so I would very much
> like
> > > to see your work whether or not the Commons folks are interested in
> > > publishing it.
> > >
> > > Good luck,
> > > Eric
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Tim Dawson [mailto:tim.dawson@idsgrp.com]
> > > Sent: Thursday, September 16, 2004 2:18 PM
> > > To: commons-dev@jakarta.apache.org
> > > Subject: CSV parser & printer
> > >
> > > I've implemented CSV parser & printer classes (with accompanying unit
> tests)
> > > that are Microsoft Excel compatible (i.e. it uses double quotes rather
> than
> > > an escape character). I'd like to donate it to commons; any interest?
> Which
> > > project would it go to - I didn't see one that jumped out as being the
> > > obvious candidate.
> > >
> > > Tim Dawson
> > > tdawson@apache.org
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > http://www.multitask.com.au/people/dion/
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message