From 7fd16f353a89e7360f060432bf7f9773284b1883 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Sun, 14 Oct 2012 05:10:57 +0000 Subject: [PATCH] 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 --- src/main/java/org/apache/commons/csv/CSVPrinter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java index ba3dac2a..b1590df4 100644 --- a/src/main/java/org/apache/commons/csv/CSVPrinter.java +++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java @@ -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;