From c08219e0d7a739f6b8c850123ed4161d97bb00cd Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Mon, 5 May 2014 18:45:55 +0000 Subject: [PATCH] Document reliance of parse(File, CSVFormat) to default encoding git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1592604 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVParser.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index ae4fff8e..c98f05d6 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -135,6 +135,11 @@ public final class CSVParser implements Iterable, Closeable { /** * Creates a parser for the given {@link File}. * + *

Note: This method internally creates a FileReader using + * {@link FileReader#FileReader(java.io.File)} which in turn relies on the default encoding of the JVM that + * is executing the code. If this is insufficient create a URL to the file and use + * {@link #parse(URL, Charset, CSVFormat)}

+ * * @param file * a CSV file. Must not be null. * @param format