|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.paneris.jal.model.CSVUtil
public final class CSVUtil
Output format (CSV) dependant formatting.
Constructor Summary | |
---|---|
CSVUtil()
|
Method Summary | |
---|---|
static java.lang.String |
escape(java.lang.String s,
ExtendedHash h)
Do general purpose escaping |
static java.lang.String |
escapeCSV(java.lang.String s)
Do basic escaping of CSV text |
static java.lang.String |
getCSVValue(DDField ddfieldParameter,
java.lang.String db,
java.text.SimpleDateFormat dateFormatter,
java.text.SimpleDateFormat datetimeFormatter)
Formats a DDField to CSV format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSVUtil()
Method Detail |
---|
public static java.lang.String escapeCSV(java.lang.String s)
input
- a String to escape
public static java.lang.String escape(java.lang.String s, ExtendedHash h)
input
- a String to escapeinput
- a hash of escapees and replacements
public static java.lang.String getCSVValue(DDField ddfieldParameter, java.lang.String db, java.text.SimpleDateFormat dateFormatter, java.text.SimpleDateFormat datetimeFormatter) throws java.lang.Exception
ddfieldParameter
- a DDField which we want to formatdb
- name of the database to querydateFormatter
- format for datesdateTimeFormatter
- format for date and times
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |