如果csv某些行的格式出现问题
例如
[email protected],1159218269,,,,,,,,,,,,,
[email protected],tm8tm,,,,,,,,,,,,,
[email protected]
d,[email protected]
这样parser.hasmore就会自动跳过去的?
怎么解决?
例如
[email protected],1159218269,,,,,,,,,,,,,
[email protected],tm8tm,,,,,,,,,,,,,
[email protected]
d,[email protected]
这样parser.hasmore就会自动跳过去的?
怎么解决?
public boolean hasMore() throws IOException {
currLine = csvParser.getLine();
currLineNum = csvParser.getLastLineNumber();
if (null == currLine)
return false;
return true;
}