Skip to content

Commit 9acb622

Browse files
committed
Breaking lines that are > 120
git-svn-id: https://svn.apache.org/repos/asf/commons/sandbox/csv/trunk@631131 13f79535-47bb-0310-9956-ffa450edef68
1 parent ee95ad7 commit 9acb622

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

src/java/org/apache/commons/csv/CSVStrategy.java

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ public class CSVStrategy implements Cloneable, Serializable {
4141
public static char COMMENTS_DISABLED = (char)-2;
4242
public static char ESCAPE_DISABLED = (char)-2;
4343

44-
public static CSVStrategy DEFAULT_STRATEGY = new CSVStrategy(',', '"', COMMENTS_DISABLED, ESCAPE_DISABLED, true, true, false, true);
45-
public static CSVStrategy EXCEL_STRATEGY = new CSVStrategy(',', '"', COMMENTS_DISABLED, ESCAPE_DISABLED, false, false, false, false);
46-
public static CSVStrategy TDF_STRATEGY = new CSVStrategy(' ', '"', COMMENTS_DISABLED, ESCAPE_DISABLED, true, true, false, true);
44+
public static CSVStrategy DEFAULT_STRATEGY = new CSVStrategy(',', '"', COMMENTS_DISABLED, ESCAPE_DISABLED, true,
45+
true, false, true);
46+
public static CSVStrategy EXCEL_STRATEGY = new CSVStrategy(',', '"', COMMENTS_DISABLED, ESCAPE_DISABLED, false,
47+
false, false, false);
48+
public static CSVStrategy TDF_STRATEGY = new CSVStrategy(' ', '"', COMMENTS_DISABLED, ESCAPE_DISABLED, true,
49+
true, false, true);
4750

4851

4952
public CSVStrategy(char delimiter, char encapsulator, char commentStart) {
@@ -91,7 +94,8 @@ public CSVStrategy(
9194
boolean interpretUnicodeEscapes,
9295
boolean ignoreEmptyLines)
9396
{
94-
this(delimiter,encapsulator,commentStart,CSVStrategy.ESCAPE_DISABLED,ignoreLeadingWhitespace,true,interpretUnicodeEscapes,ignoreEmptyLines);
97+
this(delimiter, encapsulator, commentStart, CSVStrategy.ESCAPE_DISABLED, ignoreLeadingWhitespace,
98+
true, interpretUnicodeEscapes, ignoreEmptyLines);
9599
}
96100

97101

@@ -108,13 +112,19 @@ public CSVStrategy(
108112
public void setEscape(char escape) { this.escape = escape; }
109113
public char getEscape() { return this.escape; }
110114

111-
public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces) { this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces; }
115+
public void setIgnoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces) {
116+
this.ignoreLeadingWhitespaces = ignoreLeadingWhitespaces;
117+
}
112118
public boolean getIgnoreLeadingWhitespaces() { return this.ignoreLeadingWhitespaces; }
113119

114-
public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces) { this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces; }
120+
public void setIgnoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces) {
121+
this.ignoreTrailingWhitespaces = ignoreTrailingWhitespaces;
122+
}
115123
public boolean getIgnoreTrailingWhitespaces() { return this.ignoreTrailingWhitespaces; }
116124

117-
public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes) { this.interpretUnicodeEscapes = interpretUnicodeEscapes; }
125+
public void setUnicodeEscapeInterpretation(boolean interpretUnicodeEscapes) {
126+
this.interpretUnicodeEscapes = interpretUnicodeEscapes;
127+
}
118128
public boolean getUnicodeEscapeInterpretation() { return this.interpretUnicodeEscapes; }
119129

120130
public void setIgnoreEmptyLines(boolean ignoreEmptyLines) { this.ignoreEmptyLines = ignoreEmptyLines; }

0 commit comments

Comments
 (0)