Remove method org.apache.commons.csv.CSVPrinter.print(Object, boolean), it should not have been public in the first place, the format is the API to specify this kind of option.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1398276 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
350d34d5cf
commit
e1dc4f870e
|
@ -316,27 +316,6 @@ public class CSVPrinter {
|
||||||
out.append(quoteChar);
|
out.append(quoteChar);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Prints the string as the next value on the line. The value will be escaped or encapsulated as needed if
|
|
||||||
* checkForEscape==true
|
|
||||||
*
|
|
||||||
* @param object
|
|
||||||
* value to output.
|
|
||||||
* @throws IOException
|
|
||||||
* If an I/O error occurs
|
|
||||||
*/
|
|
||||||
public void print(Object object, final boolean checkForEscape) throws IOException {
|
|
||||||
// null values are considered empty
|
|
||||||
final String value = object == null ? EMPTY : object.toString();
|
|
||||||
if (!checkForEscape) {
|
|
||||||
// write directly from string
|
|
||||||
printDelimiter();
|
|
||||||
out.append(value);
|
|
||||||
} else {
|
|
||||||
print(object, value, 0, value.length());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints the string as the next value on the line. The value will be escaped or encapsulated as needed.
|
* Prints the string as the next value on the line. The value will be escaped or encapsulated as needed.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue