Add more info to toString() method; use space separator for clarity
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1305669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
50a89da39f
commit
8e9fb0e989
|
@ -419,17 +419,23 @@ public class CSVFormat implements Serializable {
|
|||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Delimiter=<").append(delimiter).append('>');
|
||||
if (isEscaping()) {
|
||||
sb.append(',');
|
||||
sb.append(' ');
|
||||
sb.append("Escape=<").append(escape).append('>');
|
||||
}
|
||||
if (isEncapsulating()) {
|
||||
sb.append(',');
|
||||
sb.append(' ');
|
||||
sb.append("Encapsulator=<").append(encapsulator).append('>');
|
||||
}
|
||||
if (isCommentingEnabled()) {
|
||||
sb.append(',');
|
||||
sb.append(' ');
|
||||
sb.append("CommentStart=<").append(commentStart).append('>');
|
||||
}
|
||||
if (isEmptyLinesIgnored()) {
|
||||
sb.append(" EmptyLines:ignored");
|
||||
}
|
||||
if (isSurroundingSpacesIgnored()) {
|
||||
sb.append(" SurroundingSpaces:ignored");
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue