public class XsltTransformerPlugin extends Object implements ReportTransformerPlugin
| Constructor and Description |
|---|
XsltTransformerPlugin() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getHandledModelExtensions()
Get the set of file extension names corresponding to the model format
that this plugin support.
|
String[] |
getHandledTemplateExtensions()
Get the set of file extension names corresponding to the template format
that this plugin support.
|
void |
transform(InputStream data,
InputStream template,
OutputStream output,
Map<String,String> parameters)
Transform the model by applying the template on it and write the result
to the output stream.
|
public String[] getHandledTemplateExtensions()
ReportTransformerPlugingetHandledTemplateExtensions in interface ReportTransformerPluginnullpublic String[] getHandledModelExtensions()
ReportTransformerPlugingetHandledModelExtensions in interface ReportTransformerPluginnullpublic void transform(InputStream data, InputStream template, OutputStream output, Map<String,String> parameters) throws Exception
ReportTransformerPlugintransform in interface ReportTransformerPlugindata - an input stream that contains the model, must not be
nulltemplate - an input stream that contains the template, must not be
nulloutput - the output stream to write the transformation result, must
not be nullparameters - a map of parameters and their value that must be
provided to the template engine, must not be nullException - if any errors occur during the transformation processCopyright © 2021. All rights reserved.