|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.report.modules.output.csv.CSVQuoter
The CSVQuoter
is a helper class to encode a string for the CSV file format.
Constructor Summary | |
CSVQuoter()
Creates a new CSVQuoter, which uses a comma as the default separator. |
|
CSVQuoter(java.lang.String separator)
Creates a new CSVQuoter , which uses the defined separator. |
Method Summary | |
java.lang.String |
doQuoting(java.lang.String original)
Encodes the string, so that the string can safely be used in CSV files. |
java.lang.String |
getSeparator()
Gets the separator used in this quoter and the CSV file. |
void |
setSeparator(java.lang.String separator)
Defines the separator, which is used in the CSV file. |
java.lang.String |
undoQuoting(java.lang.String nativeString)
Decodes the string, so that all escape sequences get removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSVQuoter()
public CSVQuoter(java.lang.String separator)
CSVQuoter
, which uses the defined separator.
separator
- the separator.
java.lang.NullPointerException
- if the given separator is null
.Method Detail |
public java.lang.String doQuoting(java.lang.String original)
original
- the unquoted string.
public java.lang.String undoQuoting(java.lang.String nativeString)
nativeString
- the quoted string.
public java.lang.String getSeparator()
null
).public void setSeparator(java.lang.String separator)
separator
- the separator (null
not permitted).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |