public final class XsltTransformerExtensions extends Object
XsltTransformerExtensions| Constructor and Description |
|---|
XsltTransformerExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static Transformer |
getTransformer(File xsltFile)
Gets a new instance from a
Transformer object |
static Transformer |
getTransformer(Source xsltSource)
Gets a new instance from a
Transformer object |
static Transformer |
getTransformer(String xsltInputFile)
Gets a new instance from a
Transformer object |
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 TransformerConfigurationException
Transformer objectxsltFile - the xslt fileTransformer objectTransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.public static Transformer getTransformer(Source xsltSource) throws TransformerConfigurationException
Transformer objectxsltSource - the xslt sourceTransformer objectTransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.public static Transformer getTransformer(String xsltInputFile) throws TransformerConfigurationException
Transformer objectxsltInputFile - the xslt input fileTransformer objectTransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.public static void transform(@NonNull
File xmlFile,
@NonNull
File xsltFile,
OutputStream outputStream)
throws TransformerConfigurationException,
TransformerException
xmlFile - the xml filexsltFile - the xslt fileoutputStream - the output streamTransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.TransformerException - is thrown if an unrecoverable error occurs during the course of the
transformation.public static void transform(Source xmlSource, Source xsltSource, OutputStream outputStream) throws TransformerConfigurationException, TransformerException
xmlSource - the xml sourcexsltSource - the xslt sourceoutputStream - the output streamTransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.TransformerException - is thrown if an unrecoverable error occurs during the course of the
transformation.public static void transform(String xmlInputFile, String xsltInputFile, OutputStream outputStream) throws TransformerConfigurationException, TransformerException
xmlInputFile - the xml input filexsltInputFile - the xslt input fileoutputStream - the output streamTransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.TransformerException - is thrown if an unrecoverable error occurs during the course of the
transformation.Copyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.