commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1398559 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
Date Mon, 15 Oct 2012 22:56:55 GMT
Author: sebb
Date: Mon Oct 15 22:56:54 2012
New Revision: 1398559

URL: http://svn.apache.org/viewvc?rev=1398559&view=rev
Log:
Re-introduce DISABLED but as a private constant; only needed for PRISTINE definition

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

Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1398559&r1=1398558&r2=1398559&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java Mon Oct 15
22:56:54 2012
@@ -41,6 +41,13 @@ public class CSVFormat implements Serial
 
     private static final long serialVersionUID = 1L;
 
+    /**
+     * Constant char to use for disabling comments, escapes and encapsulation. The value
-2 is used because it
+     * won't be confused with an EOF signal (-1), and because the Unicode value {@code FFFE}
would be encoded as two chars
+     * (using surrogates) and thus there should never be a collision with a real text char.
+     */
+    private static final char DISABLED = '\ufffe';
+
     private final char delimiter;
     private final Character quoteChar;
     private final Quote quotePolicy;



Mime
View raw message