com.webmethods.caf.faces.bean
Class FileContentExportBean

java.lang.Object
  extended by com.webmethods.caf.faces.bean.URLContentExportBean
      extended by com.webmethods.caf.faces.bean.FileContentExportBean
All Implemented Interfaces:
IFileExportBean, IFileExportBeanEx

public class FileContentExportBean
extends URLContentExportBean

Export the content of a local file


Field Summary
 
Fields inherited from class com.webmethods.caf.faces.bean.URLContentExportBean
charactersEncoding, connection, forceDownload
 
Fields inherited from interface com.webmethods.caf.faces.bean.IFileExportBean
UNKNOWN_CONTENT_LENGTH
 
Constructor Summary
FileContentExportBean(File file, boolean forceDownload)
          Constructor.
 
Method Summary
 
Methods inherited from class com.webmethods.caf.faces.bean.URLContentExportBean
getExportCharacterEncoding, getExportContentLength, getExportContentType, getExportFileName, isDownloadForced, isExportBinary, setExportCharacterEncoding, writeExportBytes, writeExportText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileContentExportBean

public FileContentExportBean(File file,
                             boolean forceDownload)
                      throws IOException
Constructor.

Parameters:
file - The File object pointing to a file resource.
forceDownload - force download, see URLContentExportBean.isDownloadForced()
Throws:
IOException - when exceptions is thrown in reaching the passed File.