diff --git a/pom.xml b/pom.xml index 4af18e34..01984cda 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,8 @@ CSV files of various types. com.h2database h2 - 1.4.180 + + 1.3.168 test @@ -119,8 +120,8 @@ CSV files of various types. csv CSV 12313222 - 1.7 - 1.7 + 1.6 + 1.6 UTF-8 UTF-8 diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 26ad32f3..7c7d576f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -39,7 +39,8 @@ - + + No longer works with Java 6 NullPointerException when empty header string and and null string of "" Validate format parameters in constructor IllegalArgumentException thrown when the header contains duplicate names when the column names are empty. diff --git a/src/site/xdoc/index.xml b/src/site/xdoc/index.xml index f5c9cf4c..77502d91 100644 --- a/src/site/xdoc/index.xml +++ b/src/site/xdoc/index.xml @@ -41,7 +41,7 @@ limitations under the License. and various project reports are provided.

- The JavaDoc API documents for the current stable release 1.0 [Java 7.0+] can be viewed in a web browser. + The JavaDoc API documents for the current stable release 1.0 [Java 6.0+] can be viewed in a web browser.

The subversion repository can be diff --git a/src/site/xdoc/user-guide.xml b/src/site/xdoc/user-guide.xml index 58e488ab..baf655a2 100644 --- a/src/site/xdoc/user-guide.xml +++ b/src/site/xdoc/user-guide.xml @@ -39,14 +39,16 @@ for (CSVRecord record : records) { class from Apache Commons IO for example:

final URL url = ...; -try ( - final Reader reader = new InputStreamReader(new BOMInputStream(url.openStream()), StandardCharsets.UTF_8); - final CSVParser parser = new CSVParser(reader, CSVFormat.EXCEL.withHeader()); -) { +final Reader reader = new InputStreamReader(new BOMInputStream(url.openStream()), "UTF-8"); +final CSVParser parser = new CSVParser(reader, CSVFormat.EXCEL.withHeader()); +try { for (final CSVRecord record : parser) { final String string = record.get("SomeColumn"); ... } +} finally { + parser.close(); + reader.close(); }