Author: sebb
Date: Wed Mar 14 17:59:09 2012
New Revision: 1300665
URL: http://svn.apache.org/viewvc?rev=1300665&view=rev
Log:
It's not a line, it's a record
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL:
http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1300665&r1=1300664&r2=1300665&view=diff
==============================================================================
---
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
(original)
+++
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Wed Mar 14 17:59:09 2012
@@ -183,7 +183,7 @@ public class CSVParser implements Iterab
public boolean hasNext() {
if (current == null) {
- current = getNextLine();
+ current = getNextRecord();
}
return current != null;
@@ -195,7 +195,7 @@ public class CSVParser implements Iterab
if (next == null) {
// hasNext() wasn't called before
- next = getNextLine();
+ next = getNextRecord();
if (next == null) {
throw new NoSuchElementException("No more CSV records
available");
}
@@ -204,7 +204,7 @@ public class CSVParser implements Iterab
return next;
}
- private String[] getNextLine() {
+ private String[] getNextRecord() {
try {
return getRecord();
} catch (IOException e) {