Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A3DA9604 for ; Tue, 27 Mar 2012 10:05:49 +0000 (UTC) Received: (qmail 66484 invoked by uid 500); 27 Mar 2012 10:05:48 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 66411 invoked by uid 500); 27 Mar 2012 10:05:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 66191 invoked by uid 99); 27 Mar 2012 10:05:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 10:05:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2012 10:05:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D1D083488BC for ; Tue, 27 Mar 2012 10:05:26 +0000 (UTC) Date: Tue, 27 Mar 2012 10:05:26 +0000 (UTC) From: "Sebb (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <456388683.22688.1332842726869.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <447946370.21307.1332812010217.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CSV-88) Not possible to create a CSVFormat from scratch MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CSV-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13239359#comment-13239359 ] 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: 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