org.jboss.varia.deployment.convertor
Class XslTransformer
java.lang.Object
org.jboss.varia.deployment.convertor.XslTransformer
- public class XslTransformer
- extends java.lang.Object
XslTransformer is a utility class for XSL transformations.
Method Summary |
static void |
applyTransformation(java.io.InputStream srcIs,
java.io.OutputStream destOs,
java.io.InputStream templateIs,
java.util.Properties outputProps)
Applies transformation. |
static void |
applyTransformation(java.io.InputStream srcIs,
java.io.OutputStream destOs,
java.io.InputStream templateIs,
java.util.Properties outputProps,
java.util.Properties xslParams)
Applies template templateIs to xml source
srcIs with output properties outputProps
and parameters xslParams . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XslTransformer
public XslTransformer()
applyTransformation
public static void applyTransformation(java.io.InputStream srcIs,
java.io.OutputStream destOs,
java.io.InputStream templateIs,
java.util.Properties outputProps)
throws javax.xml.transform.TransformerException,
java.io.IOException
- Applies transformation.
Pre-compiled stylesheet should be used in a thread-safe manner grabbing
a new transformer before completing the transformation.
- Throws:
javax.xml.transform.TransformerException
java.io.IOException
applyTransformation
public static void applyTransformation(java.io.InputStream srcIs,
java.io.OutputStream destOs,
java.io.InputStream templateIs,
java.util.Properties outputProps,
java.util.Properties xslParams)
throws javax.xml.transform.TransformerException,
java.io.IOException
- Applies template
templateIs
to xml source
srcIs
with output properties outputProps
and parameters xslParams
.
The resulting xml is written to destOs
- Throws:
javax.xml.transform.TransformerException
java.io.IOException