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

Commit 133d221

Browse files
committed
[CSV-306] replace deprecated method in user guide, update external link
1 parent 5af74b9 commit 133d221

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/site/xdoc/index.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ limitations under the License.
2929
<li>Microsoft Excel</li>
3030
<li><a href="http://www.ibm.com/support/knowledgecenter/SSBJG3_2.5.0/com.ibm.gen_busug.doc/c_fgl_InOutSql_UNLOAD.htm">Informix UNLOAD</a></li>
3131
<li><a href="http://www.ibm.com/support/knowledgecenter/SSBJG3_2.5.0/com.ibm.gen_busug.doc/c_fgl_InOutSql_UNLOAD.htm">Informix UNLOAD CSV</a></li>
32-
<li><a href="http://dev.mysql.com/doc/refman/5.0/en/mysqldump-delimited-text.html">MySQL</a></li>
32+
<li><a href="https://dev.mysql.com/doc/refman/8.0/en/mysqldump-delimited-text.html">MySQL</a></li>
3333
<li><a href="https://docs.oracle.com/database/121/SUTIL/GUID-D1762699-8154-40F6-90DE-EFB8EB6A9AB0.htm#SUTIL4217">Oracle</a></li>
3434
<li><a href="https://www.postgresql.org/docs/current/static/sql-copy.html">PostgreSQL CSV</a></li>
3535
<li><a href="https://www.postgresql.org/docs/current/static/sql-copy.html">PostgreSQL Text</a></li>
36-
<li><a href="http://tools.ietf.org/html/rfc4180">RFC 4180</a></li>
37-
<li><a href="http://en.wikipedia.org/wiki/Tab-separated_values">TDF</a></li>
36+
<li><a href="https://datatracker.ietf.org/doc/html/rfc4180">RFC 4180</a></li>
37+
<li><a href="https://en.wikipedia.org/wiki/Tab-separated_values">TDF</a></li>
3838
</ul>
3939
</p>
4040
<p>Custom formats can be created using a fluent style API.</p>
@@ -117,13 +117,13 @@ For previous releases, see the <a href="https://archive.apache.org/dist/commons/
117117
<p>Commons CSV was started to unify a common and simple interface for reading and writing CSV files under an ASL license. It has been bootstrapped by a code donation from Netcetera in Switzerland. There are three pre-existing BSD compatible CSV parsers which this component will hopefully make redundant (authors willing): </p>
118118
<ul>
119119
<li><a href="http://kasparov.skife.org/csv/">Skife CSV</a></li>
120-
<li><a href="http://opencsv.sourceforge.net/">Open CSV</a></li>
120+
<li><a href="https://opencsv.sourceforge.net/">Open CSV</a></li>
121121
<li><a href="http://www.osjava.org/genjava/multiproject/gj-csv/">Genjava CSV</a></li>
122122
</ul>
123123
<p>In addition to the code from Netcetera (org.apache.commons.csv), Martin van den Bemt has added an additional writer API. </p>
124124
<p>Other CSV implementations: </p>
125125
<ul>
126-
<li><a href="http://supercsv.sourceforge.net/">Super CSV</a></li>
126+
<li><a href="https://super-csv.github.io/super-csv/index.html">Super CSV</a></li>
127127
</ul>
128128
</section>
129129

src/site/xdoc/user-guide.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ limitations under the License.
4444
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#ORACLE">ORACLE<sup>1.6</sup></a></dt><dd>Default Oracle format used by the SQL*Loader utility.</dd>
4545
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#POSTGRESSQL_CSV">POSTGRESSQL_CSV<sup>1.5</sup></a></dt><dd>Default PostgreSQL CSV format used by the COPY operation.</dd>
4646
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#POSTGRESSQL_TEXT">POSTGRESSQL_TEXT<sup>1.5</sup></a></dt><dd>Default PostgreSQL text format used by the COPY operation.</dd>
47-
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#RFC4180">RFC-4180</a></dt><dd>The RFC-4180 format defined by <a href="https://tools.ietf.org/html/rfc4180">RFC-4180</a>.</dd>
47+
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#RFC4180">RFC-4180</a></dt><dd>The RFC-4180 format defined by <a href="https://datatracker.ietf.org/doc/html/rfc4180">RFC-4180</a>.</dd>
4848
<dt><a href="https://commons.apache.org/proper/commons-csv/apidocs/org/apache/commons/csv/CSVFormat.html#TDF">TDF</a></dt><dd>A tab delimited format.</dd>
4949
</dl>
5050

@@ -101,7 +101,7 @@ public InputStreamReader newReader(final InputStream inputStream) {
101101
Apache Commons CSV provides several ways to access record values.
102102
The simplest way is to access values by their index in the record.
103103
However, columns in CSV files often have a name, for example: ID, CustomerNo, Birthday, etc.
104-
The CSVFormat class provides an API for specifing these <i>header</i> names and CSVRecord on
104+
The CSVFormat class provides an API for specifying these <i>header</i> names and CSVRecord on
105105
the other hand has methods to access values by their corresponding header name.
106106

107107
<subsection name="Accessing column values by index">
@@ -149,7 +149,7 @@ for (CSVRecord record : records) {
149149
Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse
150150
the header names from the first record:
151151
<source>Reader in = new FileReader(&quot;path/to/file.csv&quot;);
152-
Iterable&lt;CSVRecord&gt; records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in);
152+
Iterable&lt;CSVRecord&gt; records = CSVFormat.RFC4180.withHeader().withSkipHeaderRecord(true).parse(in);
153153
for (CSVRecord record : records) {
154154
String id = record.get("ID");
155155
String customerNo = record.get("CustomerNo");

0 commit comments

Comments
 (0)