mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-09 03:25:24 +00:00
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:
parent
b227c29978
commit
564e8244b6
@ -157,11 +157,13 @@ public class PerformanceTest {
|
|||||||
while((read=in.read()) != -1) {
|
while((read=in.read()) != -1) {
|
||||||
sb.append((char)read);
|
sb.append((char)read);
|
||||||
if (read == ',') { // count delimiters
|
if (read == ',') { // count delimiters
|
||||||
fields++;
|
|
||||||
} else if (read == '\n') {
|
|
||||||
lines++;
|
|
||||||
sb.toString();
|
sb.toString();
|
||||||
sb = new StringBuilder();
|
sb = new StringBuilder();
|
||||||
|
fields++;
|
||||||
|
} else if (read == '\n') {
|
||||||
|
sb.toString();
|
||||||
|
sb = new StringBuilder();
|
||||||
|
lines++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user