String escapeValue(String value) {
        int start = 0;
        int pos = getNextLocation(start, value);
        if (pos == -1) {
            return value;
        }
        StringBuilder builder = new StringBuilder();
        while (pos != -1) {
            builder.append(value, start, pos);
            builder.append('\\');
            builder.append(value.charAt(pos));
            start = pos + 1;
            pos = getNextLocation(start, value);
        }
        builder.append(value, start, value.length());
        return builder.toString();
    }
String escapeValue ( String value ) { int start = 0 ; int pos = getNextLocation ( start , value ) ; if ( pos == - 1 ) { return value ; } StringBuilder builder = new StringBuilder ( ) ; while ( pos != - 1 ) { builder . append ( value , start , pos ) ; builder . append ( '\\' ) ; builder . append ( value . charAt ( pos ) ) ; start = pos + 1 ; pos = getNextLocation ( start , value ) ; } builder . append ( value , start , value . length ( ) ) ; return builder . toString ( ) ; }
Escape slashes and/or commas in the given value.

@param value
@return