public final class XmlTransformer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TRANSFORMER_SIZE |
static String |
PROPERTY_TRANSFORMER_POOL_SIZE |
static int |
TRANSFORMER_POOL_SIZE |
Constructor and Description |
---|
XmlTransformer() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanTransformerList()
Remove all Templates instance from cache.
|
static int |
getTransformersCount()
Gets the number of templates.
|
String |
transform(Source source,
Source stylesheet,
String strStyleSheetId,
Map<String,String> params,
Properties outputProperties)
Transform XML documents using XSLT with cache
|
public static final String PROPERTY_TRANSFORMER_POOL_SIZE
public static final int TRANSFORMER_POOL_SIZE
public static final int MAX_TRANSFORMER_SIZE
public static void cleanTransformerList()
public static int getTransformersCount()
public String transform(Source source, Source stylesheet, String strStyleSheetId, Map<String,String> params, Properties outputProperties) throws TransformerException
source
- The XML document contentstylesheet
- The XSL sourcestrStyleSheetId
- The StyleSheet Idparams
- Parameters that can be used by the XSL StyleSheetoutputProperties
- Properties to use for the XSL transform. Will overload the XSL output definition.TransformerException
- The exceptionCopyright © 2020 City of Paris. All rights reserved.