commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (Commented) (JIRA)" <>
Subject [jira] [Commented] (CSV-88) Not possible to create a CSVFormat from scratch
Date Tue, 27 Mar 2012 10:05:26 GMT


Sebb commented on CSV-88:

bq. +0 for a no arg constructor equivalent to the default format.

If you mean the DEFAULT format here then that achieves nothing, as the user would have to
override any unwanted settings - and the use would have to know which ones to override. If
the DEFAULT format were ever later updated, that could invalidate the user's format.

I meant that the ctor should be equivalent to PRISTINE or perhaps PRISTINE + CRLF.

To fit in with the fluent API, there needs to be a static method.
For example, withDefault(char) would do.
> Not possible to create a CSVFormat from scratch
> -----------------------------------------------
>                 Key: CSV-88
>                 URL:
>             Project: Commons CSV
>          Issue Type: Bug
>            Reporter: Sebb
> It's not possible to create a CSVFormat except by modifying an existing format.
> Could either make the PRISTINE format public, or provide a constructor with a single
parameter (the delimiter).
> Could provide a no-args ctor instead, but there seems little point in that.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message