in src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java [194:206]
public int read() throws IOException {
final int current = super.read();
if (current == CR || current == LF && lastChar != CR ||
current == EOF && lastChar != CR && lastChar != LF && lastChar != EOF) {
lineNumber++;
}
if (encoder != null) {
this.bytesRead += getEncodedCharLength(current);
}
lastChar = current;
position++;
return lastChar;
}