Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 00738ef

Browse files
authored
Javadoc
1 parent 1492c74 commit 00738ef

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* Because CSV appears in many different dialects, the parser supports many formats by allowing the
5454
* specification of a {@link CSVFormat}.
5555
*
56-
* The parser works record wise. It is not possible to go back, once a record has been parsed from the input stream.
56+
* The parser works record-wise. It is not possible to go back, once a record has been parsed from the input stream.
5757
*
5858
* <h2>Creating instances</h2>
5959
* <p>
@@ -105,13 +105,13 @@
105105
* </pre>
106106
*
107107
* <p>
108-
* If the predefined formats don't match the format at hands, custom formats can be defined. More information about
109-
* customising CSVFormats is available in {@link CSVFormat CSVFormat Javadoc}.
108+
* If the predefined formats don't match the format at hand, custom formats can be defined. More information about
109+
* customizing CSVFormats is available in {@link CSVFormat CSVFormat Javadoc}.
110110
* </p>
111111
*
112112
* <h2>Parsing into memory</h2>
113113
* <p>
114-
* If parsing record wise is not desired, the contents of the input can be read completely into memory.
114+
* If parsing record-wise is not desired, the contents of the input can be read completely into memory.
115115
* </p>
116116
*
117117
* <pre>
@@ -126,14 +126,14 @@
126126
*
127127
* <ol>
128128
* <li>Parsing into memory starts at the current position of the parser. If you have already parsed records from
129-
* the input, those records will not end up in the in memory representation of your CSV data.</li>
130-
* <li>Parsing into memory may consume a lot of system resources depending on the input. For example if you're
129+
* the input, those records will not end up in the in-memory representation of your CSV data.</li>
130+
* <li>Parsing into memory may consume a lot of system resources depending on the input. For example, if you're
131131
* parsing a 150MB file of CSV data the contents will be read completely into memory.</li>
132132
* </ol>
133133
*
134134
* <h2>Notes</h2>
135135
* <p>
136-
* Internal parser state is completely covered by the format and the reader-state.
136+
* The internal parser state is completely covered by the format and the reader state.
137137
* </p>
138138
*
139139
* @see <a href="package-summary.html">package documentation for more details</a>
@@ -304,8 +304,6 @@ public static CSVParser parse(final Reader reader, final CSVFormat format) throw
304304
return new CSVParser(reader, format);
305305
}
306306

307-
// the following objects are shared to reduce garbage
308-
309307
/**
310308
* Creates a parser for the given {@link String}.
311309
*
@@ -421,7 +419,7 @@ public CSVParser(final Reader reader, final CSVFormat format) throws IOException
421419
* @param recordNumber
422420
* The next record number to assign
423421
* @throws IllegalArgumentException
424-
* If the parameters of the format are inconsistent or if either reader or format are null.
422+
* If the parameters of the format are inconsistent or if either the reader or format is null.
425423
* @throws IOException
426424
* If there is a problem reading the header or skipping the first record
427425
* @since 1.1
@@ -662,11 +660,11 @@ public String getTrailerComment() {
662660
}
663661

664662
/**
665-
* Handle whether input is parsed as null
663+
* Handles whether the input is parsed as null
666664
*
667665
* @param input
668666
* the cell data to further processed
669-
* @return null if input is parsed as null, or input itself if input isn't parsed as null
667+
* @return null if input is parsed as null, or input itself if the input isn't parsed as null
670668
*/
671669
private String handleNull(final String input) {
672670
final boolean isQuoted = this.reusableToken.isQuoted;
@@ -733,7 +731,7 @@ private boolean isStrictQuoteMode() {
733731
* Returns the record iterator.
734732
*
735733
* <p>
736-
* An {@link IOException} caught during the iteration are re-thrown as an
734+
* An {@link IOException} caught during the iteration is re-thrown as an
737735
* {@link IllegalStateException}.
738736
* </p>
739737
* <p>

0 commit comments

Comments
 (0)