[ 
https://issues.apache.org/jira/browse/CSV-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239359#comment-13239359
 ] 

Sebb edited comment on CSV-88 at 3/29/12 6:53 PM:
--------------------------------------------------

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.
                
      was (Author: s...@apache.org):
    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: https://issues.apache.org/jira/browse/CSV-88
>             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: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to