You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Henri Yandell <fl...@gmail.com> on 2006/03/06 06:12:48 UTC

Re: [csv] Bugfixes

Applied. Sorry for delay - finding time again now.

Hen

On 2/14/06, Stefan Rufer <st...@netcetera.ch> wrote:
> The attached patch fixes two bugs in the CSVParser:
>
>    - Changed "end of file behaviour": When last values of a line terminated
>      by CR has been read, getline() now returns null instead of String[0].
>      Also the returned String[][] of getAllValues() now doesn't have
>      a row to much in this case.
>    - Changed "escaping behaviour": An escape char ('\') only escapes a
>      delimiter in complex values i.e. values encasulated e.g. with quotes.
>      An escape char never escapes a delimiter (e.g. a comma ',').
>
> Additionally, it contains a little API enhancement to allow "chained
> calls" while configuring the parser by returning the parser instance from
> each set method:
>    parser.setDelimiter(':').setExcelStrategy().setIgnoreEmptyLines(true);
> Quite handy for simple configs.
>
> Thanks for having a look at it and maybe adding it to the source.
>
>
> cu
> Stefan
>
> PS: Third patch is for the package.html file with the updated docs and
> changed project names from netcetera's to jakarta's ;-)
>
>
> ---------------------------------------------------------------------
> 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