|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--planetj.helpers.FileHelper
|
+--planetj.helpers.CSVHelper
This class will assist in creating CSV files. Although it's called CSVHelper (Comma Separated Variable), the delimiter may be any 'char' value.
Creation date: (12/4/2001 9:32:24 PM)
| Method Summary | |
StringBuffer |
generateCSVFile(ICSVRow pCSVRow,
CSVFileDescriptor pCSVFileDescriptor)
This method will generate a CSV file with CSV data supplied in pCSVRow.getCSVRow(). |
StringBuffer |
generateCSVFile(List pList,
CSVFileDescriptor pCSVFileDescriptor)
This method will generate a CSV file with CSV data supplied in pList.get(i).toString() if pList.elementAt(i) is not a ICSVField, ICSVRow or List. |
StringBuffer |
getCSVData(ICSVRow pCSVRow,
CSVFileDescriptor pCSVFileDescriptor)
Converts an ICSVRow into a String containing CSV data. |
StringBuffer |
getCSVData(List pList,
CSVFileDescriptor pCSVFileDescriptor)
Converts an List of items into a String containing CSV data. |
static CSVFileDescriptor |
newCSVFileDescriptor()
This is the only way to get an instance of a new CSVFileDescriptor Creation date: (12/5/2001 3:15:14 PM) |
static CSVFileDescriptor |
newCSVFileDescriptor(FilePropertyGroup pProperties)
This is the only way to get an instance of a new CSVFileDescriptor Creation date: (12/5/2001 3:15:14 PM) |
static CSVHelper |
singleton()
CSVHelper implements the singleton model so this method is the only way to get an instance of this class Creation date: (12/4/2001 10:58:17 PM) |
| Methods inherited from class planetj.helpers.FileHelper |
getAS400, getFileSeparator, newFileDescriptor, newFileDescriptor, validateFileName, writeData |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public StringBuffer generateCSVFile(List pList,
CSVFileDescriptor pCSVFileDescriptor)
throws CMException
The file will be generated from attributes of pCSVFileDescriptor
Creation date: (12/4/2001 10:07:48 PM)
CMException
public StringBuffer generateCSVFile(ICSVRow pCSVRow,
CSVFileDescriptor pCSVFileDescriptor)
throws CMException
CMException
public StringBuffer getCSVData(List pList,
CSVFileDescriptor pCSVFileDescriptor)
throws CMException
Creation date: (2/13/2002 1:36:21 PM)
CMException
public StringBuffer getCSVData(ICSVRow pCSVRow,
CSVFileDescriptor pCSVFileDescriptor)
throws CMException
Creation date: (2/13/2002 1:36:21 PM)
CMExceptionpublic static CSVFileDescriptor newCSVFileDescriptor()
public static CSVFileDescriptor newCSVFileDescriptor(FilePropertyGroup pProperties)
public static CSVHelper singleton()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||