You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Calling {@link Builder#setHeader(String...)} lets you use the given names to address values in a {@link CSVRecord}, and assumes that your CSV source does not
@@ -117,10 +117,10 @@
117
117
* You can use a format directly to parse a reader. For example, to parse an Excel file with columns header, write:
* CSVFormat format = aformat.withHeader("name", "email", "phone");
2818
-
* </pre>
2816
+
* <pre>{@code
2817
+
* CSVFormat format = aformat.withHeader("name", "email", "phone");
2818
+
* }</pre>
2819
2819
* <p>
2820
2820
* The header is also used by the {@link CSVPrinter}.
2821
2821
* </p>
@@ -2834,9 +2834,9 @@ public CSVFormat withHeader(final String... header) {
2834
2834
* Builds a new {@code CSVFormat} with the header comments of the format set to the given values. The comments will be printed first, before the headers.
2835
2835
* This setting is ignored by the parser.
2836
2836
*
2837
-
* <pre>
2838
-
* CSVFormat format = aformat.withHeaderComments("Generated by Apache Commons CSV.", Instant.now());
2839
-
* </pre>
2837
+
* <pre>{@code
2838
+
* CSVFormat format = aformat.withHeaderComments("Generated by Apache Commons CSV.", Instant.now());
2839
+
* }</pre>
2840
2840
*
2841
2841
* @param headerComments the headerComments which will be printed by the Printer before the actual CSV data.
2842
2842
* @return A new CSVFormat that is equal to this but with the specified header
0 commit comments