4444 *
4545 * The parser works record wise. It is not possible to go back, once a record has been parsed from the input stream.
4646 *
47- * <h4>Creating instances</h4>
48- * There are several static factory methods that can be used to create instances for various types of resources:
47+ * <h2>Creating instances</h2>
4948 * <p>
49+ * There are several static factory methods that can be used to create instances for various types of resources:
50+ * </p>
5051 * <ul>
5152 * <li>{@link #parse(java.io.File, CSVFormat)}</li>
5253 * <li>{@link #parse(String, CSVFormat)}</li>
5354 * <li>{@link #parse(java.net.URL, java.nio.charset.Charset, CSVFormat)}</li>
5455 * </ul>
55- * </p>
5656 * <p>
5757 * Alternatively parsers can also be created by passing a {@link Reader} directly to the sole constructor.
5858 *
6464 * }
6565 * </pre>
6666 *
67- * <h4 >Parsing record wise</h4 >
67+ * <h2 >Parsing record wise</h2 >
6868 * <p>
6969 * To parse a CSV input from a file, you write:
7070 * </p>
9898 * customising CSVFormats is available in {@link CSVFormat CSVFormat JavaDoc}.
9999 * </p>
100100 *
101- * <h4 >Parsing into memory</h4 >
101+ * <h2 >Parsing into memory</h2 >
102102 * <p>
103103 * If parsing record wise is not desired, the contents of the input can be read completely into memory.
104104 * </p>
113113 * There are two constraints that have to be kept in mind:
114114 * </p>
115115 *
116- * <p>
117116 * <ol>
118117 * <li>Parsing into memory starts at the current position of the parser. If you have already parsed records from
119118 * the input, those records will not end up in the in memory representation of your CSV data.</li>
120119 * <li>Parsing into memory may consume a lot of system resources depending on the input. For example if you're
121120 * parsing a 150MB file of CSV data the contents will be read completely into memory.</li>
122121 * </ol>
123- * </p>
124122 *
125- * <h4 >Notes</h4 >
123+ * <h2 >Notes</h2 >
126124 * <p>
127125 * Internal parser state is completely covered by the format and the reader-state.
128126 * </p>
@@ -268,8 +266,10 @@ public void close() throws IOException {
268266
269267 /**
270268 * Returns the current line number in the input stream.
271- * <p/>
272- * ATTENTION: If your CSV input has multi-line values, the returned number does not correspond to the record number.
269+ *
270+ * <p>
271+ * <strong>ATTENTION:</strong> If your CSV input has multi-line values, the returned number does not correspond to the record number.
272+ * </p>
273273 *
274274 * @return current line number
275275 */
@@ -290,8 +290,10 @@ public Map<String, Integer> getHeaderMap() {
290290
291291 /**
292292 * Returns the current record number in the input stream.
293- * <p/>
294- * ATTENTION: If your CSV input has multi-line values, the returned number does not correspond to the line number.
293+ *
294+ * <p>
295+ * <strong>ATTENTION:</strong> If your CSV input has multi-line values, the returned number does not correspond to the line number.
296+ * </p>
295297 *
296298 * @return current line number
297299 */
@@ -302,8 +304,10 @@ public long getRecordNumber() {
302304 /**
303305 * Parses the CSV input according to the given format and returns the content as a list of
304306 * {@link CSVRecord CSVRecords}.
305- * <p/>
307+ *
308+ * <p>
306309 * The returned content starts at the current parse-position in the stream.
310+ * </p>
307311 *
308312 * @return list of {@link CSVRecord CSVRecords}, may be empty
309313 * @throws IOException
@@ -316,11 +320,14 @@ public List<CSVRecord> getRecords() throws IOException {
316320 /**
317321 * Parses the CSV input according to the given format and adds the content to the collection of {@link CSVRecord
318322 * CSVRecords}.
319- * <p/>
323+ *
324+ * <p>
320325 * The returned content starts at the current parse-position in the stream.
321- *
326+ * </p>
327+ *
322328 * @param records
323329 * The collection to add to.
330+ * @param <T> the type of collection used.
324331 * @return a collection of {@link CSVRecord CSVRecords}, may be empty
325332 * @throws IOException
326333 * on parse error or input read-failure
0 commit comments