planetj.helpers
Class FDFHelper

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

public class FDFHelper
extends FileHelper

Forms Data Format (.fdf) is a format that can plug data into PDF files variable fields. This class will assist in creating FDF files. FDF files are opened with Adobe Acrobat or Acrobat Reader. The data in the FDF will be plugged into the corresponding form field in the pdf. This is normally used along with a PDF template to plug the FDF data into.

See Also:

Creation date: (2/4/2002 1:02:16 PM)


Method Summary
 StringBuffer generateFDFFile(IFDFObject pFDFObject, FDFFileDescriptor pFDFFileDescriptor)
          This method will return a StringBuffer in FDF format according to pFDFObject.getFDFData().
 StringBuffer getFDFData(Object pValue, String pName)
          This returns a StringBuffer in FDF format for the giving value, pValue and name, pName Creation date: (2/8/2002 12:19:57 PM)
 StringBuffer getFDFFooter(String pPDFFileName)
          Returns a StringBuffer containing FDF footer info Creation date: (2/7/2002 2:16:08 PM)
 StringBuffer getFDFHeader()
          Returns a StringBuffer containing FDF header info The version may need to be adjusted in the future Creation date: (2/7/2002 2:08:58 PM)
static FDFFileDescriptor newFDFFileDescriptor()
          This is the only way to get an instance of a new FDFFileDescriptor Creation date: (2/4/2002 1:31:49 PM)
static FDFFileDescriptor newFDFFileDescriptor(FilePropertyGroup pProperties)
          Deprecated. FDFs dont need a property group
static FDFHelper singleton()
          FDFHelper implements the singleton model so this method is the only way to get an instance of this class Creation date: (2/4/2002 1:31:15 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

generateFDFFile

public StringBuffer generateFDFFile(IFDFObject pFDFObject,
                                    FDFFileDescriptor pFDFFileDescriptor)
                             throws CMException
This method will return a StringBuffer in FDF format according to pFDFObject.getFDFData(). Creation date: (2/4/2002 1:32:24 PM)

CMException

getFDFData

public StringBuffer getFDFData(Object pValue,
                               String pName)
This returns a StringBuffer in FDF format for the giving value, pValue and name, pName Creation date: (2/8/2002 12:19:57 PM)


getFDFFooter

public StringBuffer getFDFFooter(String pPDFFileName)
Returns a StringBuffer containing FDF footer info Creation date: (2/7/2002 2:16:08 PM)


getFDFHeader

public StringBuffer getFDFHeader()
Returns a StringBuffer containing FDF header info The version may need to be adjusted in the future Creation date: (2/7/2002 2:08:58 PM)


newFDFFileDescriptor

public static FDFFileDescriptor newFDFFileDescriptor()
This is the only way to get an instance of a new FDFFileDescriptor Creation date: (2/4/2002 1:31:49 PM)

Returns:
new FDFFileDescriptor()

newFDFFileDescriptor

public static FDFFileDescriptor newFDFFileDescriptor(FilePropertyGroup pProperties)
Deprecated. FDFs dont need a property group

This is the only way to get an instance of a new FDFFileDescriptor Creation date: (2/4/2002 1:31:49 PM)

Returns:
new FDFFileDescriptor()

singleton

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

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