Skip to content

Commit 7fd16f3

Browse files
committed
Rename "encapsulator" to "quoteChar" so we have quoteChar and quotePolicy. Encapsulator makes me want to ask "encapsulate what"? fieldEncapsulator would be better but so verbose, quoteChar feels more to the point to me and provides symmetry with quotePolicy.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398017 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0dbb499 commit 7fd16f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/commons/csv/CSVPrinter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void printComment(final String comment) throws IOException {
136136

137137
private void print(final CharSequence value, final int offset, final int len) throws IOException {
138138
if (format.isQuoting()) {
139-
printAndEncapsulate(value, offset, len);
139+
printAndQuote(value, offset, len);
140140
} else if (format.isEscaping()) {
141141
printAndEscape(value, offset, len);
142142
} else {
@@ -191,7 +191,7 @@ void printAndEscape(final CharSequence value, final int offset, final int len) t
191191
}
192192
}
193193

194-
void printAndEncapsulate(final CharSequence value, final int offset, final int len) throws IOException {
194+
void printAndQuote(final CharSequence value, final int offset, final int len) throws IOException {
195195
final boolean first = newLine; // is this the first value on this line?
196196
boolean quote = false;
197197
int start = offset;

0 commit comments

Comments
 (0)