Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83938109B8 for ; Tue, 30 Jul 2013 21:16:28 +0000 (UTC) Received: (qmail 98480 invoked by uid 500); 30 Jul 2013 21:16:28 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 98399 invoked by uid 500); 30 Jul 2013 21:16:28 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 98383 invoked by uid 99); 30 Jul 2013 21:16:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 21:16:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [178.32.124.100] (HELO mo5.mail-out.ovh.net) (178.32.124.100) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jul 2013 21:16:19 +0000 Received: from mail439.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo5.mail-out.ovh.net (Postfix) with SMTP id C9AB8FFA3BF for ; Tue, 30 Jul 2013 23:15:38 +0200 (CEST) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 30 Jul 2013 23:15:45 +0200 Received: from mar75-7-82-247-19-29.fbx.proxad.net (HELO ?192.168.0.10?) (ebourg@ariane-software.com@82.247.19.29) by ns0.ovh.net with SMTP; 30 Jul 2013 23:15:44 +0200 Message-ID: <51F82CF8.8070403@apache.org> Date: Tue, 30 Jul 2013 23:15:36 +0200 From: Emmanuel Bourg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Commons Developers List X-Ovh-Mailout: 178.32.228.5 (mo5.mail-out.ovh.net) Subject: Re: [CSV] Headers and the first record References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 3242591733299174466 X-Ovh-Remote: 82.247.19.29 (mar75-7-82-247-19-29.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 0 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeijedrheehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-Spam-Check: DONE|U 0.500001/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeeijedrheehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecu X-Virus-Checked: Checked by ClamAV on apache.org I haven't checked the current code, but the intended behavior was: - no args: the first record defines the header and is not returned when iterating - args: the header is defined independently of the data, all the records are returned when iterating Emmanuel Bourg Le 30/07/2013 22:23, Gary Gregory a écrit : > Actually, if you use withHeader(), no args, you _cannot_ get back the first > record, so that makes skipHeader=false not possible without making the > parser track the first record separately. > > In the interest of simplicity, I am going to make it simple: if you use > withHeader of any kind, then the first record is read. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org