Add basic toString method
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1304462 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
43987a7d78
commit
37a261b385
|
@ -435,4 +435,23 @@ public class CSVFormat implements Serializable {
|
|||
return out.toString().trim();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Delimiter=<").append(delimiter).append('>');
|
||||
if (isEscaping()) {
|
||||
sb.append(',');
|
||||
sb.append("Escape=<").append(escape).append('>');
|
||||
}
|
||||
if (isEncapsulating()) {
|
||||
sb.append(',');
|
||||
sb.append("Encapsulator=<").append(encapsulator).append('>');
|
||||
}
|
||||
if (isCommentingEnabled()) {
|
||||
sb.append(',');
|
||||
sb.append("CommentStart=<").append(commentStart).append('>');
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue