public class TransformerFactory extends Object
Transformer instances in runtime| Modifier and Type | Field and Description |
|---|---|
static String |
INIT_METHOD |
static String |
POI_CLASS_NAME |
static String |
POI_TRANSFORMER |
static String |
TRANSFORMER_SYSTEM_PROPERTY |
| Constructor and Description |
|---|
TransformerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Transformer |
createTransformer(InputStream inputStream,
OutputStream outputStream)
Creates a transformer initialized for reading a template from an
InputStream and writing output to OutputStream
By default it creates a transformer from jxls-poi module
To create a different transformer set `jxlstransformer` system java property to the class name of the transformer
The transformer should have a public static `createTransformer(InputStream is, OutputStream os)` method
which will be invoked to create an instance of the transformer |
static String |
getTransformerClassName() |
static String |
getTransformerName()
Deprecated.
Use
getTransformerClassName() method instead |
public static final String POI_CLASS_NAME
public static final String INIT_METHOD
public static final String TRANSFORMER_SYSTEM_PROPERTY
public static final String POI_TRANSFORMER
public static Transformer createTransformer(InputStream inputStream, OutputStream outputStream)
InputStream and writing output to OutputStream
By default it creates a transformer from jxls-poi module
To create a different transformer set `jxlstransformer` system java property to the class name of the transformer
The transformer should have a public static `createTransformer(InputStream is, OutputStream os)` method
which will be invoked to create an instance of the transformerinputStream - - an input stream to read an Excel templateoutputStream - - an output stream to write the processed Excel outputTransformerpublic static String getTransformerName()
getTransformerClassName() method insteadTransformer which is loaded by this factorypublic static String getTransformerClassName()
Copyright © 2021. All rights reserved.