Skip to content

Commit a4e3e2b

Browse files
committed
Javadoc
1 parent 09bfdc1 commit a4e3e2b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)