public class FileContentExportBean extends URLContentExportBean
charactersEncoding, connection, forceDownload
UNKNOWN_CONTENT_LENGTH
Constructor and Description |
---|
FileContentExportBean(File file,
boolean forceDownload)
Constructor.
|
getExportCharacterEncoding, getExportContentLength, getExportContentType, getExportFileName, isDownloadForced, isExportBinary, setExportCharacterEncoding, writeExportBytes, writeExportText
public FileContentExportBean(File file, boolean forceDownload) throws IOException
file
- The File
object pointing to a file resource.forceDownload
- force download, see URLContentExportBean.isDownloadForced()
IOException
- when exceptions is thrown in reaching the passed
File
.