public final class XsltTransformerExtensions extends Object
XsltTransformerExtensions.| Modifier and Type | Method and Description |
|---|---|
static Transformer |
getTransformer(File xsltFile)
Gets the transformer.
|
static Transformer |
getTransformer(Source xsltSource)
Gets a new instance from a Transformer object.
|
static Transformer |
getTransformer(String xsltInputFile)
Gets the transformer.
|
static void |
transform(File xmlFile,
File xsltFile,
OutputStream outputStream)
Transform.
|
static void |
transform(Source xmlSource,
Source xsltSource,
OutputStream outputStream)
Transform.
|
static void |
transform(String xmlInputFile,
String xsltInputFile,
OutputStream outputStream)
Transform.
|
public static Transformer getTransformer(File xsltFile) throws TransformerFactoryConfigurationError, TransformerConfigurationException
xsltFile - the xslt fileTransformerFactoryConfigurationError - the transformer factory configuration errorTransformerConfigurationException - the transformer configuration exceptionpublic static Transformer getTransformer(Source xsltSource) throws TransformerFactoryConfigurationError, TransformerConfigurationException
xsltSource - the xslt sourceTransformerFactoryConfigurationError - the transformer factory configuration errorTransformerConfigurationException - the transformer configuration exceptionpublic static Transformer getTransformer(String xsltInputFile) throws TransformerFactoryConfigurationError, TransformerConfigurationException
xsltInputFile - the xslt input fileTransformerFactoryConfigurationError - the transformer factory configuration errorTransformerConfigurationException - the transformer configuration exceptionpublic static void transform(File xmlFile, File xsltFile, OutputStream outputStream) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException
xmlFile - the xml filexsltFile - the xslt fileoutputStream - the output streamTransformerFactoryConfigurationError - the transformer factory configuration errorTransformerConfigurationException - the transformer configuration exceptionTransformerException - the transformer exceptionpublic static void transform(Source xmlSource, Source xsltSource, OutputStream outputStream) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException
xmlSource - the xml sourcexsltSource - the xslt sourceoutputStream - the output streamTransformerFactoryConfigurationError - the transformer factory configuration errorTransformerConfigurationException - the transformer configuration exceptionTransformerException - the transformer exceptionpublic static void transform(String xmlInputFile, String xsltInputFile, OutputStream outputStream) throws TransformerFactoryConfigurationError, TransformerConfigurationException, TransformerException
xmlInputFile - the xml input filexsltInputFile - the xslt input fileoutputStream - the output streamTransformerFactoryConfigurationError - the transformer factory configuration errorTransformerConfigurationException - the transformer configuration exceptionTransformerException - the transformer exceptionCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.