Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4B596200AED for ; Tue, 3 May 2016 20:44:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4A1061609F4; Tue, 3 May 2016 20:44:14 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BA50A1609A9 for ; Tue, 3 May 2016 20:44:13 +0200 (CEST) Received: (qmail 38432 invoked by uid 500); 3 May 2016 18:44:12 -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 38421 invoked by uid 99); 3 May 2016 18:44:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 18:44:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C637D2C0451 for ; Tue, 3 May 2016 18:44:12 +0000 (UTC) Date: Tue, 3 May 2016 18:44:12 +0000 (UTC) From: "Benedikt Ritter (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CSV-179) Add shortcut method for using first record as header to CSVFormat MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 03 May 2016 18:44:14 -0000 [ https://issues.apache.org/jira/browse/CSV-179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedikt Ritter resolved CSV-179. --------------------------------- Resolution: Fixed {code} $ svn ci -m "CSV-179: Add shortcut method for using first record as header to CSVFormat" Sending src/changes/changes.xml Sending src/main/java/org/apache/commons/csv/CSVFormat.java Sending src/test/java/org/apache/commons/csv/CSVFormatTest.java Transmitting file data ... Committed revision 1742175. {code} > Add shortcut method for using first record as header to CSVFormat > ----------------------------------------------------------------- > > Key: CSV-179 > URL: https://issues.apache.org/jira/browse/CSV-179 > Project: Commons CSV > Issue Type: Improvement > Components: Parser > Reporter: Benedikt Ritter > Assignee: Benedikt Ritter > Fix For: 1.3 > > > As discussed on the dev ML: > Instead of: > {code:java} > CSVFormat.RFC4180 > .withHeader() // use first row as header > .withSkipHeaderRecord(); > {code} > It would be useful to have a method that does this in one call: withFirstRecordAsHeader() -- This message was sent by Atlassian JIRA (v6.3.4#6332)