commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [CSV] ASCII Delimited Text - Not CSV or TAB delimited text
Date Fri, 28 Mar 2014 14:15:58 GMT
On Fri, Mar 28, 2014 at 5:09 AM, Benedikt Ritter <britter@apache.org> wrote:

> 2014-03-27 17:28 GMT+01:00 sebb <sebbaz@gmail.com>:
>
> > On 27 March 2014 15:49, Gary Gregory <garydgregory@gmail.com> wrote:
> > > FYI:
> > >
> > > Has anyone seen this?
> > >
> > >
> >
> https://ronaldduncan.wordpress.com/2009/10/31/text-file-formats-ascii-delimited-text-not-csv-or-tab-delimited-text/
> > >
> > > It actually makes sense. Good luck editing such files though...
> >
> > Yes, how is one supposed to create them?
> >
> > I think those ASCII characters were used quite a lot in the early days
> > of teletypes which had the appropriate keys.
> > Also they were used in some serial line protocols.
> >
> > But of course once people needed to send binary data, escape codes or
> > encoding had to be used.
> >
> > > I wonder if we should add a built-in format for this format?
> >
> > Are there (m)any files that use the format?
> >
> > Otherwise why bother ...
> >
>
> I don't see this as a requirement for 1.0. Additional formats can easily
> added in 1.1. Or does the API have to be changed to include this format?
>


IMO, this can be implemented now with a custom CSVFormat like any other
format.

The min level question is whether *we* should include a CSVFormat.ASCII
constant.

The max level question is, as outlined in the blog, because that makes
processing simpler, we should refactor our code to know about certain kinds
of format where escaping is superfluous. This refactoring could require
visible changes, or not, who knows.

But this is not 1.0 blocker.

Gary


>
>
> >
> > > Gary
> > > --
> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > Java Persistence with Hibernate, Second Edition<
> > http://www.manning.com/bauer3/>
> > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > > Spring Batch in Action <http://www.manning.com/templier/>
> > > Blog: http://garygregory.wordpress.com
> > > Home: http://garygregory.com/
> > > Tweet! http://twitter.com/GaryGregory
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
> >
>
>
> --
> http://people.apache.org/~britter/
> http://www.systemoutprintln.de/
> http://twitter.com/BenediktRitter
> http://github.com/britter
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message