|
62 | 62 | * </p> |
63 | 63 | * <pre>CSVFormat.EXCEL.withHeader("Col1", "Col2", "Col3");</pre> |
64 | 64 | * <p> |
65 | | - * Calling {@link #withHeader(String...)} let's you use the given names to address values in a {@link CSVRecord}, and |
| 65 | + * Calling {@link #withHeader(String...)} let's you use the given names to address values in a {@link CSVRecord}, and |
66 | 66 | * assumes that your CSV source does not contain a first record that also defines column names. If it does, then |
67 | | - * you are overriding this metadata with your names and you should skip the first record by calling |
68 | | - * {@link #withSkipHeaderRecord(boolean)} with {@code true}. |
| 67 | + * you are overriding this metadata with your names and you should skip the first record by calling |
| 68 | + * {@link #withSkipHeaderRecord(boolean)} with {@code true}. |
69 | 69 | * </p> |
70 | 70 | * <h4>Parsing</h4> |
71 | 71 | * <p> |
|
78 | 78 | * </p> |
79 | 79 | * <h4>Referencing columns safely</h4> |
80 | 80 | * <p> |
81 | | - * If your source contains a header record, you can simplify your code and safely reference columns, |
| 81 | + * If your source contains a header record, you can simplify your code and safely reference columns, |
82 | 82 | * by using {@link #withHeader(String...)} with no arguments: |
83 | 83 | * </p> |
84 | 84 | * <pre>CSVFormat.EXCEL.withHeader();</pre> |
85 | 85 | * <p> |
86 | 86 | * This causes the parser to read the first record and use its values as column names. |
87 | 87 | * Then, call one of the {@link CSVRecord} get method that takes a String column name argument: |
88 | | - * </p> |
| 88 | + * </p> |
89 | 89 | * <pre>String value = record.get("Col1");</pre> |
90 | 90 | * <p> |
91 | 91 | * This makes your code impervious to changes in column order in the CSV file. |
92 | 92 | * </p> |
93 | | - * <h4>Notes</h4> |
| 93 | + * <h4>Notes</h4> |
94 | 94 | * <p> |
95 | 95 | * This class is immutable. |
96 | 96 | * </p> |
@@ -125,7 +125,8 @@ public class CSVFormat implements Serializable { |
125 | 125 | * <li>withIgnoreEmptyLines(true)</li> |
126 | 126 | * </ul> |
127 | 127 | */ |
128 | | - public static final CSVFormat DEFAULT = new CSVFormat(COMMA, DOUBLE_QUOTE_CHAR, null, null, null, false, true, CRLF, null, null, false); |
| 128 | + public static final CSVFormat DEFAULT = new CSVFormat(COMMA, DOUBLE_QUOTE_CHAR, null, null, null, |
| 129 | + false, true, CRLF, null, null, false); |
129 | 130 |
|
130 | 131 | /** |
131 | 132 | * Comma separated format as defined by <a href="http://tools.ietf.org/html/rfc4180">RFC 4180</a>. |
|
0 commit comments