|
53 | 53 | * Because CSV appears in many different dialects, the parser supports many formats by allowing the |
54 | 54 | * specification of a {@link CSVFormat}. |
55 | 55 | * |
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. |
57 | 57 | * |
58 | 58 | * <h2>Creating instances</h2> |
59 | 59 | * <p> |
|
105 | 105 | * </pre> |
106 | 106 | * |
107 | 107 | * <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}. |
110 | 110 | * </p> |
111 | 111 | * |
112 | 112 | * <h2>Parsing into memory</h2> |
113 | 113 | * <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. |
115 | 115 | * </p> |
116 | 116 | * |
117 | 117 | * <pre> |
|
126 | 126 | * |
127 | 127 | * <ol> |
128 | 128 | * <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 |
131 | 131 | * parsing a 150MB file of CSV data the contents will be read completely into memory.</li> |
132 | 132 | * </ol> |
133 | 133 | * |
134 | 134 | * <h2>Notes</h2> |
135 | 135 | * <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. |
137 | 137 | * </p> |
138 | 138 | * |
139 | 139 | * @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 |
304 | 304 | return new CSVParser(reader, format); |
305 | 305 | } |
306 | 306 |
|
307 | | - // the following objects are shared to reduce garbage |
308 | | - |
309 | 307 | /** |
310 | 308 | * Creates a parser for the given {@link String}. |
311 | 309 | * |
@@ -421,7 +419,7 @@ public CSVParser(final Reader reader, final CSVFormat format) throws IOException |
421 | 419 | * @param recordNumber |
422 | 420 | * The next record number to assign |
423 | 421 | * @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. |
425 | 423 | * @throws IOException |
426 | 424 | * If there is a problem reading the header or skipping the first record |
427 | 425 | * @since 1.1 |
@@ -662,11 +660,11 @@ public String getTrailerComment() { |
662 | 660 | } |
663 | 661 |
|
664 | 662 | /** |
665 | | - * Handle whether input is parsed as null |
| 663 | + * Handles whether the input is parsed as null |
666 | 664 | * |
667 | 665 | * @param input |
668 | 666 | * 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 |
670 | 668 | */ |
671 | 669 | private String handleNull(final String input) { |
672 | 670 | final boolean isQuoted = this.reusableToken.isQuoted; |
@@ -733,7 +731,7 @@ private boolean isStrictQuoteMode() { |
733 | 731 | * Returns the record iterator. |
734 | 732 | * |
735 | 733 | * <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 |
737 | 735 | * {@link IllegalStateException}. |
738 | 736 | * </p> |
739 | 737 | * <p> |
|
0 commit comments