Package de.xima.fc.transform.excel
Class FdToExcelResult
- java.lang.Object
-
- de.xima.fc.transform.excel.FdToExcelResult
-
- All Implemented Interfaces:
IFdTransformResult
,AutoCloseable
public class FdToExcelResult extends Object implements IFdTransformResult, AutoCloseable
The result of an transformation of formdata to excel- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.poi.ss.usermodel.Workbook
getWorkbook()
void
writeToFile(File outputFile)
Method to write the transformation result to an fileByteArrayOutputStream
writeToStream()
Method to return the transformation result as anByteArrayOutputStream
-
-
-
Method Detail
-
writeToStream
public ByteArrayOutputStream writeToStream()
Description copied from interface:IFdTransformResult
Method to return the transformation result as anByteArrayOutputStream
- Specified by:
writeToStream
in interfaceIFdTransformResult
- Returns:
ByteArrayOutputStream
of the result
-
writeToFile
public void writeToFile(File outputFile) throws IOException
Description copied from interface:IFdTransformResult
Method to write the transformation result to an file- Specified by:
writeToFile
in interfaceIFdTransformResult
- Parameters:
outputFile
- the file to write the result to- Throws:
IOException
-
getWorkbook
public org.apache.poi.ss.usermodel.Workbook getWorkbook()
- Returns:
- the
Workbook
which will be exported
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-