commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r631131 - /commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVStrategy.java
Date Tue, 26 Feb 2008 08:43:37 GMT
Author: bayard
Date: Tue Feb 26 00:43:37 2008
New Revision: 631131

URL: http://svn.apache.org/viewvc?rev=631131&view=rev
Log:
Breaking lines that are > 120

Modified:
    commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVStrategy.java

Modified: commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVStrategy.java
URL: http://svn.apache.org/viewvc/commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVStrategy.java?rev=631131&r1=631130&r2=631131&view=diff
==============================================================================
--- commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVStrategy.java (original)
+++ commons/sandbox/csv/trunk/src/java/org/apache/commons/csv/CSVStrategy.java Tue Feb 26
00:43:37 2008
@@ -41,9 +41,12 @@
     public static char COMMENTS_DISABLED       = (char)-2;
     public static char ESCAPE_DISABLED         = (char)-2;
 
-    public static CSVStrategy DEFAULT_STRATEGY = new CSVStrategy(',', '"', COMMENTS_DISABLED,
ESCAPE_DISABLED, true, true,  false, true);
-    public static CSVStrategy EXCEL_STRATEGY   = new CSVStrategy(',', '"', COMMENTS_DISABLED,
ESCAPE_DISABLED, false, false, false, false);
-    public static CSVStrategy TDF_STRATEGY     = new CSVStrategy('	', '"', COMMENTS_DISABLED,
ESCAPE_DISABLED, true, true,  false, true);
+    public static CSVStrategy DEFAULT_STRATEGY = new CSVStrategy(',', '"', COMMENTS_DISABLED,
ESCAPE_DISABLED, true, 
+                                                                 true, false, true);
+    public static CSVStrategy EXCEL_STRATEGY   = new CSVStrategy(',', '"', COMMENTS_DISABLED,
ESCAPE_DISABLED, false, 
+                                                                 false, false, false);
+    public static CSVStrategy TDF_STRATEGY     = new CSVStrategy('	', '"', COMMENTS_DISABLED,
ESCAPE_DISABLED, true, 
+                                                                 true, false, true);
 
 
     public CSVStrategy(char delimiter, char encapsulator, char commentStart) {
@@ -91,7 +94,8 @@
         boolean interpretUnicodeEscapes,
         boolean ignoreEmptyLines)
     {
-        this(delimiter,encapsulator,commentStart,CSVStrategy.ESCAPE_DISABLED,ignoreLeadingWhitespace,true,interpretUnicodeEscapes,ignoreEmptyLines);
+        this(delimiter, encapsulator, commentStart, CSVStrategy.ESCAPE_DISABLED, ignoreLeadingWhitespace,

+             true, interpretUnicodeEscapes, ignoreEmptyLines);
     }
 
 
@@ -108,13 +112,19 @@
     public void setEscape(char escape) { this.escape = escape; }
     public char getEscape() { return this.escape; }
 
-    public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces) { this.ignoreLeadingWhitespaces
= ignoreLeadingWhitespaces; }
+    public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces) { 
+        this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces; 
+    }
     public boolean getIgnoreLeadingWhitespaces() { return this.ignoreLeadingWhitespaces;
}
 
-    public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces) { this.ignoreTrailingWhitespaces
= ignoreTrailingWhitespaces; }
+    public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces) { 
+        this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces; 
+    }
     public boolean getIgnoreTrailingWhitespaces() { return this.ignoreTrailingWhitespaces;
}
 
-    public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes) { this.interpretUnicodeEscapes
= interpretUnicodeEscapes; }
+    public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes) { 
+        this.interpretUnicodeEscapes = interpretUnicodeEscapes; 
+    }
     public boolean getUnicodeEscapeInterpretation() { return this.interpretUnicodeEscapes;
}
 
     public void setIgnoreEmptyLines(boolean ignoreEmptyLines) { this.ignoreEmptyLines = ignoreEmptyLines;
}



Mime
View raw message