Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8948E9AD1 for ; Sat, 17 Mar 2012 13:38:16 +0000 (UTC) Received: (qmail 18614 invoked by uid 500); 17 Mar 2012 13:38:16 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 18546 invoked by uid 500); 17 Mar 2012 13:38:16 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 18539 invoked by uid 99); 17 Mar 2012 13:38:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2012 13:38:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2012 13:38:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id C10D623889D5 for ; Sat, 17 Mar 2012 13:37:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1301938 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java Date: Sat, 17 Mar 2012 13:37:54 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120317133754.C10D623889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sebb Date: Sat Mar 17 13:37:54 2012 New Revision: 1301938 URL: http://svn.apache.org/viewvc?rev=1301938&view=rev Log: Javadoc Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java?rev=1301938&r1=1301937&r2=1301938&view=diff ============================================================================== --- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java (original) +++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java Sat Mar 17 13:37:54 2012 @@ -100,6 +100,18 @@ class ExtendedBufferedReader extends Buf return len; } + /** + * Calls {@link BufferedReader#readLine()} which drops the line terminator(s). + * This method should only be called when processing a comment, otherwise + * information can be lost. + *

+ * Increments {@link #lineCounter} + *

+ * Sets {@link #lastChar} to {@link #END_OF_STREAM} at EOF, + * otherwise to last character on the line (won't be CR or LF) + * + * @return the line that was read, or null if reached EOF. + */ @Override public String readLine() throws IOException { String line = super.readLine();