@ProviderType
public interface ReportTransformerPlugin
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getHandledModelExtensions()
Get the set of file extension names corresponding to the model format
that this plugin support.
|
java.lang.String[] |
getHandledTemplateExtensions()
Get the set of file extension names corresponding to the template format
that this plugin support.
|
void |
transform(java.io.InputStream model,
java.io.InputStream template,
java.io.OutputStream output,
java.util.Map<java.lang.String,java.lang.String> parameters)
Transform the model by applying the template on it and write the result
to the output stream.
|
java.lang.String[] getHandledTemplateExtensions()
null
java.lang.String[] getHandledModelExtensions()
null
void transform(java.io.InputStream model, java.io.InputStream template, java.io.OutputStream output, java.util.Map<java.lang.String,java.lang.String> parameters) throws java.lang.Exception
model
- an input stream that contains the model, must not be
null
template
- an input stream that contains the template, must not be
null
output
- the output stream to write the transformation result, must
not be null
parameters
- a map of parameters and their value that must be
provided to the template engine, must not be null
java.lang.Exception
- if any errors occur during the transformation process