commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1592604 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Date Mon, 05 May 2014 18:45:56 GMT
Author: britter
Date: Mon May  5 18:45:55 2014
New Revision: 1592604

URL: http://svn.apache.org/r1592604
Log:
Document reliance of parse(File, CSVFormat) to default encoding

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1592604&r1=1592603&r2=1592604&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java Mon May 
5 18:45:55 2014
@@ -135,6 +135,11 @@ public final class CSVParser implements 
     /**
      * Creates a parser for the given {@link File}.
      *
+     * <p><strong>Note:</strong> 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)}</p>
+     *
      * @param file
      *            a CSV file. Must not be null.
      * @param format



Mime
View raw message