You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,37 @@ public void mark(final int readAheadLimit) throws IOException {
225
225
super.mark(readAheadLimit);
226
226
}
227
227
228
+
/**
229
+
* Fills {@code array} with the characters that follow the current position without consuming them.
230
+
* <p>
231
+
* Overridden because the inherited implementation stops at the first short read, which leaves the tail of the array holding stale content when the source
232
+
* delivers data in chunks. Callers compare the whole array against a multi-character delimiter, so a partial fill makes them miss a delimiter that is
233
+
* really there.
234
+
* </p>
235
+
*
236
+
* @param array the buffer to fill.
237
+
* @return the number of characters peeked, or {@link IOUtils#EOF} at the end of the stream.
0 commit comments