Java CSV String Convert csvQuote(String value)

Here you can find the source of csvQuote(String value)

Description

csv Quote

License

Open Source License

Declaration

public static String csvQuote(String value) 

Method Source Code

//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*/
}

Related

  1. csvDecodeString(String value)
  2. csvDelimiter(String line)
  3. csvEncode(int value)
  4. csvEncodeString(String value)
  5. csvString(Object[] objects)
  6. csvstring(Object[] str)
  7. csvTitleToTag(String title, int index)
  8. csvToArray(String dirs)