Example usage for org.apache.commons.text StringEscapeUtils unescapeCsv

List of usage examples for org.apache.commons.text StringEscapeUtils unescapeCsv

Introduction

In this page you can find the example usage for org.apache.commons.text StringEscapeUtils unescapeCsv.

Prototype

public static final String unescapeCsv(final String input) 

Source Link

Document

Returns a String value for an unescaped CSV column.

Usage

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;
}