Skip to content

Commit 560a699

Browse files
committed
Javadoc
1 parent e5fa9c9 commit 560a699

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,15 +1441,19 @@ public static CSVFormat valueOf(final String format) {
14411441
return CSVFormat.Predefined.valueOf(format).getFormat();
14421442
}
14431443

1444+
/** How duplicate headers are handled. */
14441445
private final DuplicateHeaderMode duplicateHeaderMode;
14451446

1447+
/** Whether missing column names are allowed when parsing the header line. */
14461448
private final boolean allowMissingColumnNames;
14471449

1450+
/** Whether to flush on close. */
14481451
private final boolean autoFlush;
14491452

14501453
/** Set to null if commenting is disabled. */
14511454
private final Character commentMarker;
14521455

1456+
/** The character delimiting the values (typically ";", "," or "\t"). */
14531457
private final String delimiter;
14541458

14551459
/** Set to null if escaping is disabled. */
@@ -1461,12 +1465,13 @@ public static CSVFormat valueOf(final String format) {
14611465
/** Array of header comment lines. */
14621466
private final String[] headerComments;
14631467

1468+
/** Whether empty lines between records are ignored when parsing input. */
14641469
private final boolean ignoreEmptyLines;
14651470

14661471
/** Should ignore header names case. */
14671472
private final boolean ignoreHeaderCase;
14681473

1469-
/** TODO Should leading/trailing spaces be ignored around values?. */
1474+
/** Should leading/trailing spaces be ignored around values?. */
14701475
private final boolean ignoreSurroundingSpaces;
14711476

14721477
/** The string to be used for null values. */
@@ -1475,21 +1480,28 @@ public static CSVFormat valueOf(final String format) {
14751480
/** Set to null if quoting is disabled. */
14761481
private final Character quoteCharacter;
14771482

1483+
/** Set to {@code quoteCharacter + nullString + quoteCharacter} */
14781484
private final String quotedNullString;
14791485

1486+
/** The quote policy output fields. */
14801487
private final QuoteMode quoteMode;
14811488

14821489
/** For output. */
14831490
private final String recordSeparator;
14841491

1492+
/** Whether to skip the header record. */
14851493
private final boolean skipHeaderRecord;
14861494

1495+
/** Whether reading end-of-file is allowed even when input is malformed, helps Excel compatibility. */
14871496
private final boolean lenientEof;
14881497

1498+
/** Whether reading trailing data is allowed in records, helps Excel compatibility. */
14891499
private final boolean trailingData;
14901500

1501+
/** Whether to add a trailing delimiter. */
14911502
private final boolean trailingDelimiter;
14921503

1504+
/** Whether to trim leading and trailing blanks. */
14931505
private final boolean trim;
14941506

14951507
private CSVFormat(final Builder builder) {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ public final class CSVRecord implements Serializable, Iterable<String> {
4242

4343
private static final long serialVersionUID = 1L;
4444

45+
/**
46+
* The start position of this record as a character position in the source stream. This may or may not correspond to the byte position depending on the
47+
* character set.
48+
*/
4549
private final long characterPosition;
4650

4751
/** The accumulated comments (if any) */

0 commit comments

Comments
 (0)