[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    =?utf-8?q?=5BGitHub=5D_=5Bcommons-csv=5D_garydgregory_commented_on_a_diff_in?= =?utf-8?q?_pull_reque
From:       garydgregory_(via_GitHub) <git () apache ! org>
Date:       2023-08-31 19:27:25
Message-ID: PR_kwDOAKJSRc5ZHOhs-2b922c0e-7796-40eb-bc4c-a6be35a05558 () gitbox ! apache ! org
[Download RAW message or body]


garydgregory commented on code in PR #347:
URL: https://github.com/apache/commons-csv/pull/347#discussion_r1312125582


##########
src/main/java/org/apache/commons/csv/CSVParser.java:
##########
@@ -438,6 +440,44 @@ public CSVParser(final Reader reader, final CSVFormat format, \
final long charact  this.recordNumber = recordNumber - 1;
     }
 
+    /**
+     * Return the parsed CSV content of currently parsed line up until this method \
is called. +     * <p>
+     * Maximum parsed token length set by the 'maxParsedTokenCount' is considered \
during the construction of return string. +     * </p>
+     * <p>
+     * Example:
+     * </p>
+     * </p>
+     * If currently reading CSV record row contains following data and \
'maxParsedTokenCount' is set to 5 and current reading position is col7 +     * </p>
+     * <pre>
+     * col1, col2, col3, col4, col5, col6, col7
+     * </pre>
+     * <p>
+     * then method returns following
+     * </p>
+     * <pre>
+     * col3, col4, col5, col6, col7
+     * </pre>
+     * @return parsed CSV content of current reading line
+     */
+    public String getLastParsedContent() {

Review Comment:
   I'll take another look later but, the fact that someone created a ticket does not \
make it a requirement for the component. As I've previously stated, adding position \
information is fine but not data IMO.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic