Replace magic char with constant TAB.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397078 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2012-10-11 14:30:04 +00:00
parent 13092bad7d
commit 3ea85d4c8b
1 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,8 @@ import java.io.StringWriter;
*/
public class CSVFormat implements Serializable {
private static final char TAB = '\t';
private static final char DOUBLE_QUOTE = '"';
private static final char COMMA = ',';
@ -113,7 +115,7 @@ public class CSVFormat implements Serializable {
/** Tab-delimited format, with quote; leading and trailing spaces ignored. */
public static final CSVFormat TDF =
PRISTINE
.withDelimiter('\t')
.withDelimiter(TAB)
.withEncapsulator(DOUBLE_QUOTE)
.withSurroundingSpacesIgnored(true)
.withEmptyLinesIgnored(true)
@ -129,7 +131,7 @@ public class CSVFormat implements Serializable {
*/
public static final CSVFormat MYSQL =
PRISTINE
.withDelimiter('\t')
.withDelimiter(TAB)
.withEscape('\\')
.withLineSeparator("\n");