planetj.helpers
Class DOCHelper

java.lang.Object
  |
  +--planetj.helpers.FileHelper
        |
        +--planetj.helpers.DOCHelper

public class DOCHelper
extends FileHelper

This class will assist in creating DOC .doc Microsoft Word files.

This uses CSVFileDescriptor to describe a DOC file

See Also:

Creation date: (2/13/2002 1:28:47 PM)


Method Summary
 StringBuffer generateDOCFile(ICSVRow pCSVRow, CSVFileDescriptor pCSVFileDescriptor)
          This method will generate a CSV/DOC file with CSV/DOC data supplied in pCSVRow.getCSVRow().
 StringBuffer generateDOCFile(List pList, CSVFileDescriptor pCSVFileDescriptor)
          This method will generate a CSV/DOC file with CSV/DOC data supplied in pList.get(i).toString() if pList.elementAt(i) is not a ICSVField, ICSVRow or List.
static DOCHelper singleton()
          DOCHelper implements the singleton model so this method is the only way to get an instance of this class Creation date: (2/13/2002 1:28:28 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

generateDOCFile

public StringBuffer generateDOCFile(List pList,
                                    CSVFileDescriptor pCSVFileDescriptor)
                             throws CMException
This method will generate a CSV/DOC file with CSV/DOC data supplied in pList.get(i).toString() if pList.elementAt(i) is not a ICSVField, ICSVRow or List. If pList.elementAt(i) is a ICSVField, the getCSVField() will be called and that returned String will be the data written to the CSV file.

The file will be generated from attributes of pCSVFileDescriptor

Creation date: (2/13/2002 1:30:38 PM)

CMException

generateDOCFile

public StringBuffer generateDOCFile(ICSVRow pCSVRow,
                                    CSVFileDescriptor pCSVFileDescriptor)
                             throws CMException
This method will generate a CSV/DOC file with CSV/DOC data supplied in pCSVRow.getCSVRow(). The file will be generated from attributes of pCSVFileDescriptor

Creation date: (2/13/2002 1:37:41 PM)

CMException

singleton

public static DOCHelper singleton()
DOCHelper implements the singleton model so this method is the only way to get an instance of this class Creation date: (2/13/2002 1:28:28 PM)

Returns:
planetj.helpers.CSVHelper mSingleton, an instance of this Class