public class CsvEscaper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static CsvEscaper |
getInstance() |
java.lang.String |
translate(java.lang.CharSequence input)
Helper for non-Writer usage.
|
int |
translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
Translate a set of codepoints, represented by an int index into a CharSequence,
into another set of codepoints.
|
public static CsvEscaper getInstance()
public int translate(java.lang.CharSequence input,
int index,
java.io.Writer out)
throws java.io.IOException
input - CharSequence that is being translatedindex - int representing the current point of translationout - Writer to translate the text tojava.io.IOException - if and only if the Writer produces an IOExceptionpublic final java.lang.String translate(java.lang.CharSequence input)
input - CharSequence to be translated