Java Code Examples for org.apache.commons.lang3.StringEscapeUtils#escapeCsv()
The following examples show how to use
org.apache.commons.lang3.StringEscapeUtils#escapeCsv() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OverallCSV.java From pikatimer with GNU General Public License v3.0 | 4 votes |
private String escape(String s){ return StringEscapeUtils.escapeCsv(s); }
Example 2
Source File: CSVWriter.java From bjoern with GNU General Public License v3.0 | 4 votes |
private static String escape(String propValue) { return StringEscapeUtils.escapeCsv(propValue.replace("\\", "\\\\")); }
Example 3
Source File: TaskTranslation.java From AIDR with GNU Affero General Public License v3.0 | 4 votes |
public String getCSVFormattedOriginalText() { return StringEscapeUtils.escapeCsv(originalText.replaceAll("[\r\n]", "")); }
Example 4
Source File: EncodeUtils.java From base-framework with Apache License 2.0 | 4 votes |
/** * Csv 转码. */ public static String escapeCsv(String csv) { return StringEscapeUtils.escapeCsv(csv); }