List of usage examples for org.apache.commons.text StringEscapeUtils unescapeCsv
public static final String unescapeCsv(final String input)
Returns a String value for an unescaped CSV column.
From source file:org.apache.nifi.processors.standard.AttributesToCSV.java
private LinkedHashSet<String> attributeListStringToSet(String attributeList) { //take the user specified attribute list string and convert to list of strings. LinkedHashSet<String> result = new LinkedHashSet<>(); if (StringUtils.isNotBlank(attributeList)) { String[] ats = attributeList.split(SPLIT_REGEX); for (String str : ats) { result.add(StringEscapeUtils.unescapeCsv(str.trim())); }/*from w w w .j a v a 2 s. c o m*/ } return result; }