File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/org/apache/commons/csv Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -765,6 +765,9 @@ public long getRecordNumber() {
765765 * <p>
766766 * The returned content starts at the current parse-position in the stream.
767767 * </p>
768+ * <p>
769+ * You can use {@link CSVFormat.Builder#setMaxRows(long)} to limit how many rows this method produces.
770+ * </p>
768771 *
769772 * @return list of {@link CSVRecord CSVRecords}, may be empty
770773 * @throws UncheckedIOException
@@ -871,6 +874,9 @@ private boolean isStrictQuoteMode() {
871874 * parser is closed, one option is to extract all records as a list with
872875 * {@link #getRecords()}, and return an iterator to that list.
873876 * </p>
877+ * <p>
878+ * You can use {@link CSVFormat.Builder#setMaxRows(long)} to limit how many rows an Iterator produces.
879+ * </p>
874880 */
875881 @ Override
876882 public Iterator <CSVRecord > iterator () {
@@ -938,6 +944,10 @@ CSVRecord nextRecord() throws IOException {
938944 * If the parser is closed, the stream will not produce any more values.
939945 * See the comments in {@link #iterator()}.
940946 * </p>
947+ * <p>
948+ * You can use {@link CSVFormat.Builder#setMaxRows(long)} to limit how many rows a Stream produces.
949+ * </p>
950+ *
941951 * @return a sequential {@code Stream} with this collection as its source.
942952 * @since 1.9.0
943953 */
You can’t perform that action at this time.
0 commit comments