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 Wed, 22 Sep 2004 19:07:12 GMT
I believe so; I contributed to the taglibs project several years ago, but as
I look at the CLA it looks a little different than what I signed back then.
(I do have a new employer so I will check to see if they feel a CCLA is
necessary; this code was developed off-hours.)

Tim

> -----Original Message-----
> From: Dion Gillard [mailto:dion.gillard@gmail.com]
> Sent: Wednesday, September 22, 2004 12:44 AM
> To: Jakarta Commons Developers List
> Subject: Re: CSV parser & printer
> 
> Tim, do you have a CLA in place with the ASF?
> 
> 
> On Wed, 22 Sep 2004 00:03:14 -0500, Tim Dawson <tim.dawson@idsgrp.com>
> wrote:
> > I've created bug 31355 and attached a zip file containing my source
> code,
> > using [codec] as the base package. Apologies in advance if I'm not
> following
> > the right code styles.
> >
> > As others have commented, there are several CSV "specs" out on the web.
> This
> > is the one I used when writing this:
> > http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm#FileFormat
> >
> > The actual algorithm gets fairly complex and ugly inside the parse
> method
> > (lots of special cases depending on state); I haven't been able to tease
> out
> > a more object-oriented approach yet but I gotta believe there's one out
> > there. If someone sees a better way of accomplishing this, I will gladly
> use
> > it.
> >
> > Tim
> >
> >
> >
> > > -----Original Message-----
> > > From: Henri Yandell [mailto:flamefew@gmail.com]
> > > Sent: Friday, September 17, 2004 11:36 AM
> > > To: Jakarta Commons Developers List
> > > Subject: Re: CSV parser & printer
> > >
> > > Unless anyone wants to -1 it, submit your code in as the package
> > > org.apache.commons.io.csv to Bugzilla as a zip or something (including
> > > unit tests) and I'll go ahead and review it there.
> > >
> > > Mainly I'll be looking to make it support what my ones do too, so I
> > > can go ahead and drop them. Or if I feel strongly about the simplicty
> > > of mine or something, I'll then try to convince you to start with
> > > mine.
> > >
> > > Hen
> > >
> > > On Fri, 17 Sep 2004 10:28:26 -0500, Tim Dawson <tim.dawson@idsgrp.com>
> > > wrote:
> > > > 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
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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


Mime
View raw message