-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support in Commons CSV for tracking byte positions during parsing #12
Add support in Commons CSV for tracking byte positions during parsing #12
Conversation
DarrenJAN
commented
Nov 18, 2024
- Add augment the builder and add a private constructor to create CVSParser class
- Adjust format
- Use a try-with-resources block
- improve the comments
- Use a Charset instead of a string Charset name in ExtendedBufferedReader class
// "org/apache/commons/csv/CSV-196/japanese.csv"), format, 0L, 1L, "UTF-8"); | ||
CSVParser parser = format.parse(getTestInput( | ||
"org/apache/commons/csv/CSV-196/japanese.csv"), 0L, 1L, "UTF-8"); | ||
.setDelimiter(',') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation.
.setQuote('\'') | ||
.get(); | ||
CSVParser parser = new CSVParser.Builder() | ||
.setFormat(format) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the indentation.
src/main/java/org/apache/commons/csv/ExtendedBufferedReader.java
Outdated
Show resolved
Hide resolved
@@ -510,7 +521,7 @@ public CSVParser(final Reader reader, final CSVFormat format, final long charact | |||
this(reader, format, characterOffset, recordNumber, null); | |||
} | |||
|
|||
/** | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry just noticed an extra indentation problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one extra indentation problem, sorry. The rest looks great!