diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index 8a9f4c55..ebcef375 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -29,12 +29,12 @@ limitations under the License.
  • Microsoft Excel
  • Informix UNLOAD
  • Informix UNLOAD CSV
  • -
  • MySQL
  • +
  • MySQL
  • Oracle
  • PostgreSQL CSV
  • PostgreSQL Text
  • -
  • RFC 4180
  • -
  • TDF
  • +
  • RFC 4180
  • +
  • TDF
  • Custom formats can be created using a fluent style API.

    @@ -117,13 +117,13 @@ For previous releases, see the Skife CSV -
  • Open CSV
  • +
  • Open CSV
  • Genjava CSV
  • In addition to the code from Netcetera (org.apache.commons.csv), Martin van den Bemt has added an additional writer API.

    Other CSV implementations:

    diff --git a/src/site/xdoc/user-guide.xml b/src/site/xdoc/user-guide.xml index 254b4617..4ce14e1b 100644 --- a/src/site/xdoc/user-guide.xml +++ b/src/site/xdoc/user-guide.xml @@ -44,7 +44,7 @@ limitations under the License.
    ORACLE1.6
    Default Oracle format used by the SQL*Loader utility.
    POSTGRESSQL_CSV1.5
    Default PostgreSQL CSV format used by the COPY operation.
    POSTGRESSQL_TEXT1.5
    Default PostgreSQL text format used by the COPY operation.
    -
    RFC-4180
    The RFC-4180 format defined by RFC-4180.
    +
    RFC-4180
    The RFC-4180 format defined by RFC-4180.
    TDF
    A tab delimited format.
    @@ -101,7 +101,7 @@ public InputStreamReader newReader(final InputStream inputStream) { Apache Commons CSV provides several ways to access record values. The simplest way is to access values by their index in the record. However, columns in CSV files often have a name, for example: ID, CustomerNo, Birthday, etc. - The CSVFormat class provides an API for specifing these header names and CSVRecord on + The CSVFormat class provides an API for specifying these header names and CSVRecord on the other hand has methods to access values by their corresponding header name. @@ -149,7 +149,7 @@ for (CSVRecord record : records) { Some CSV files define header names in their first record. If configured, Apache Commons CSV can parse the header names from the first record: Reader in = new FileReader("path/to/file.csv"); -Iterable<CSVRecord> records = CSVFormat.RFC4180.withFirstRecordAsHeader().parse(in); +Iterable<CSVRecord> records = CSVFormat.RFC4180.withHeader().withSkipHeaderRecord(true).parse(in); for (CSVRecord record : records) { String id = record.get("ID"); String customerNo = record.get("CustomerNo");