create strings for each field

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1302039 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-03-18 00:00:36 +00:00
parent b227c29978
commit 564e8244b6
1 changed files with 5 additions and 3 deletions

View File

@ -157,11 +157,13 @@ public class PerformanceTest {
while((read=in.read()) != -1) {
sb.append((char)read);
if (read == ',') { // count delimiters
fields++;
} else if (read == '\n') {
lines++;
sb.toString();
sb = new StringBuilder();
fields++;
} else if (read == '\n') {
sb.toString();
sb = new StringBuilder();
lines++;
}
}
} else {