public final class XsltTransformerExtensions
extends java.lang.Object
XsltTransformerExtensions| Constructor and Description |
|---|
XsltTransformerExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.transform.Transformer |
getTransformer(java.io.File xsltFile)
Gets a new instance from a
Transformer object |
static javax.xml.transform.Transformer |
getTransformer(javax.xml.transform.Source xsltSource)
Gets a new instance from a
Transformer object |
static javax.xml.transform.Transformer |
getTransformer(java.lang.String xsltInputFile)
Gets a new instance from a
Transformer object |
static void |
transform(@NonNull java.io.File xmlFile,
@NonNull java.io.File xsltFile,
java.io.OutputStream outputStream)
Transform.
|
static void |
transform(javax.xml.transform.Source xmlSource,
javax.xml.transform.Source xsltSource,
java.io.OutputStream outputStream)
Transform.
|
static void |
transform(java.lang.String xmlInputFile,
java.lang.String xsltInputFile,
java.io.OutputStream outputStream)
Transform.
|
public static javax.xml.transform.Transformer getTransformer(java.io.File xsltFile)
throws javax.xml.transform.TransformerConfigurationException
Transformer objectxsltFile - the xslt fileTransformer objectjavax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.public static javax.xml.transform.Transformer getTransformer(javax.xml.transform.Source xsltSource)
throws javax.xml.transform.TransformerConfigurationException
Transformer objectxsltSource - the xslt sourceTransformer objectjavax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.public static javax.xml.transform.Transformer getTransformer(java.lang.String xsltInputFile)
throws javax.xml.transform.TransformerConfigurationException
Transformer objectxsltInputFile - the xslt input fileTransformer objectjavax.xml.transform.TransformerConfigurationException - 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
@NonNull java.io.File xmlFile,
@NonNull
@NonNull java.io.File xsltFile,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
xmlFile - the xml filexsltFile - the xslt fileoutputStream - the output streamjavax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.javax.xml.transform.TransformerException - is thrown if an unrecoverable error occurs during the course of the
transformation.public static void transform(javax.xml.transform.Source xmlSource,
javax.xml.transform.Source xsltSource,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
xmlSource - the xml sourcexsltSource - the xslt sourceoutputStream - the output streamjavax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.javax.xml.transform.TransformerException - is thrown if an unrecoverable error occurs during the course of the
transformation.public static void transform(java.lang.String xmlInputFile,
java.lang.String xsltInputFile,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerConfigurationException,
javax.xml.transform.TransformerException
xmlInputFile - the xml input filexsltInputFile - the xslt input fileoutputStream - the output streamjavax.xml.transform.TransformerConfigurationException - is thrown if there are errors when parsing the Source or it is not
possible to create a Transformer instance.javax.xml.transform.TransformerException - is thrown if an unrecoverable error occurs during the course of the
transformation.