You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/10/16 00:56:55 UTC

svn commit: r1398559 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java

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;