diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index 51f1904e..a2f8de61 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -284,7 +284,7 @@ public class CSVFormat implements Serializable { * * @return {@code true} if an quoteChar is defined */ - public boolean isEncapsulating() { + public boolean isQuoting() { return quoteChar != null; } @@ -547,7 +547,7 @@ public class CSVFormat implements Serializable { sb.append(' '); sb.append("Escape=<").append(escape).append('>'); } - if (isEncapsulating()) { + if (isQuoting()) { sb.append(' '); sb.append("Encapsulator=<").append(quoteChar).append('>'); } diff --git a/src/main/java/org/apache/commons/csv/CSVPrinter.java b/src/main/java/org/apache/commons/csv/CSVPrinter.java index cd7d1487..ba3dac2a 100644 --- a/src/main/java/org/apache/commons/csv/CSVPrinter.java +++ b/src/main/java/org/apache/commons/csv/CSVPrinter.java @@ -135,7 +135,7 @@ public class CSVPrinter { } private void print(final CharSequence value, final int offset, final int len) throws IOException { - if (format.isEncapsulating()) { + if (format.isQuoting()) { printAndEncapsulate(value, offset, len); } else if (format.isEscaping()) { printAndEscape(value, offset, len);