Here you can find the source of csvQuote(String value)
public static String csvQuote(String value)
//package com.java2s; //License from project: Open Source License public class Main { public static String csvQuote(String value) { return '"' + value.replaceAll("\"", "\"\"") + '"'; }/* w w w . j av a2 s. c o m*/ }