Author: ggregory Date: Sun Oct 14 05:10:57 2012 New Revision: 1398017 URL: http://svn.apache.org/viewvc?rev=1398017&view=rev Log: 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.
Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java?rev=1398017&r1=1398016&r2=1398017&view=diff ============================================================================== --- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java (original) +++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVPrinter.java Sun Oct 14 05:10:57 2012 @@ -136,7 +136,7 @@ public class CSVPrinter { private void print(final CharSequence value, final int offset, final int len) throws IOException { if (format.isQuoting()) { - printAndEncapsulate(value, offset, len); + printAndQuote(value, offset, len); } else if (format.isEscaping()) { printAndEscape(value, offset, len); } else { @@ -191,7 +191,7 @@ public class CSVPrinter { } } - void printAndEncapsulate(final CharSequence value, final int offset, final int len) throws IOException { + void printAndQuote(final CharSequence value, final int offset, final int len) throws IOException { final boolean first = newLine; // is this the first value on this line? boolean quote = false; int start = offset;