Package org.jxls.builder
Class JxlsTemplateFiller
java.lang.Object
org.jxls.builder.JxlsTemplateFiller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JxlsOptionsprotected final InputStreamprotected Transformer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJxlsTemplateFiller(JxlsOptions options, InputStream template) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ContextcreateContext(ExpressionEvaluatorContext expressionEvaluatorContext, Map<String, Object> data, RunVarAccess runVarAccess) protected ExpressionEvaluatorContextprotected voidcreateTransformer(OutputStream outputStream) voidfill(Map<String, Object> data, JxlsOutput output) Creates Excel report using the given data map and writes it to the given output.getSheetsNameOfMultiSheetTemplate(List<Area> areaList) Return names of all multi sheet templateprotected voidpreWrite()protected voidprocessAreas(Map<String, Object> data) Implementation must set areas variable.protected voidwrite()
-
Field Details
-
options
-
template
-
transformer
-
areas
-
-
Constructor Details
-
JxlsTemplateFiller
-
-
Method Details
-
fill
Creates Excel report using the given data map and writes it to the given output.- Parameters:
data- not nulloutput- not null
-
createTransformer
-
configureTransformer
protected void configureTransformer() -
processAreas
Implementation must set areas variable.- Parameters:
data- -
-
createContext
protected Context createContext(ExpressionEvaluatorContext expressionEvaluatorContext, Map<String, Object> data, RunVarAccess runVarAccess) -
createExpressionEvaluatorContext
-
preWrite
protected void preWrite() -
getSheetsNameOfMultiSheetTemplate
Return names of all multi sheet template- Parameters:
areaList- list of area- Returns:
- string array
-
write
- Throws:
IOException
-