com.ebasetech.ufs.utility
Class PDFFileSaver

java.lang.Object
  extended bycom.ebasetech.ufs.utility.FileSaver
      extended bycom.ebasetech.ufs.utility.PDFFileSaver

public class PDFFileSaver
extends FileSaver

class: PDFFileSaver Utility class to save a PDF file


Field Summary
private static java.lang.String FILE_PREFIX
           
private static java.lang.String FILE_SUFFIX
           
private static java.lang.String SAVE_ERROR_PREFIX
           
private static java.lang.String ZEROES
           
 
Fields inherited from class com.ebasetech.ufs.utility.FileSaver
directory, fileName, form
 
Constructor Summary
PDFFileSaver(com.ebasetech.ufs.kernel.Form formIn)
           
 
Method Summary
private  java.lang.String getDirectory()
           
private  java.lang.String getfileName(java.lang.String documentBaseName)
           
private  java.lang.String save(java.io.ByteArrayOutputStream pdfOut, java.lang.String documentBaseName)
           
 void saveDocument(java.io.ByteArrayOutputStream pdfOut, java.lang.String documentBaseName)
           
private  void updateSystemVariable(java.lang.String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAVE_ERROR_PREFIX

private static final java.lang.String SAVE_ERROR_PREFIX
See Also:
Constant Field Values

ZEROES

private static final java.lang.String ZEROES
See Also:
Constant Field Values

FILE_PREFIX

private static final java.lang.String FILE_PREFIX
See Also:
Constant Field Values

FILE_SUFFIX

private static final java.lang.String FILE_SUFFIX
See Also:
Constant Field Values
Constructor Detail

PDFFileSaver

public PDFFileSaver(com.ebasetech.ufs.kernel.Form formIn)
Method Detail

saveDocument

public void saveDocument(java.io.ByteArrayOutputStream pdfOut,
                         java.lang.String documentBaseName)
                  throws com.ebasetech.ufs.kernel.FormException
Throws:
com.ebasetech.ufs.kernel.FormException

save

private java.lang.String save(java.io.ByteArrayOutputStream pdfOut,
                              java.lang.String documentBaseName)
                       throws com.ebasetech.ufs.kernel.FormException
Throws:
com.ebasetech.ufs.kernel.FormException

updateSystemVariable

private void updateSystemVariable(java.lang.String fileName)
                           throws com.ebasetech.ufs.kernel.FormException
Throws:
com.ebasetech.ufs.kernel.FormException

getDirectory

private java.lang.String getDirectory()

getfileName

private java.lang.String getfileName(java.lang.String documentBaseName)
                              throws com.ebasetech.ufs.kernel.FormException
Throws:
com.ebasetech.ufs.kernel.FormException