当前页面:
在线文档首页 >
JBoss 3.2.7 varia API Documentation 英文版文档
XslTransformer (Various API) - JBoss 3.2.7 varia API Documentation 英文版文档
org.jboss.varia.deployment.convertor
Class XslTransformer
java.lang.Object
org.jboss.varia.deployment.convertor.XslTransformer
- public class XslTransformer
- extends Object
XslTransformer is a utility class for XSL transformations.
- Version:
- $Revision: 1.3.2.4 $
- Author:
- Alex Loubyansky
Method Summary |
static void |
applyTransformation(DOMSource srcIs,
OutputStream destOs,
InputStream templateIs,
Properties outputProps,
Properties xslParams)
|
static void |
applyTransformation(InputStream srcIs,
OutputStream destOs,
InputStream templateIs,
Properties outputProps)
Applies transformation. |
static void |
applyTransformation(InputStream srcIs,
OutputStream destOs,
InputStream templateIs,
Properties outputProps,
Properties xslParams)
Applies template templateIs to xml source
srcIs with output properties outputProps
and parameters xslParams . |
static void |
domToFile(Node node,
File dest,
Properties outputProps)
|
static Node |
transform(File xmlFile,
String xslPath,
Map params,
Properties outputProps,
Node resultNode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XslTransformer
public XslTransformer()
transform
public static Node transform(File xmlFile,
String xslPath,
Map params,
Properties outputProps,
Node resultNode)
throws SAXException,
IOException,
TransformerException
- Throws:
SAXException
IOException
TransformerException
domToFile
public static void domToFile(Node node,
File dest,
Properties outputProps)
throws TransformerException,
FileNotFoundException
- Throws:
TransformerException
FileNotFoundException
applyTransformation
public static void applyTransformation(InputStream srcIs,
OutputStream destOs,
InputStream templateIs,
Properties outputProps)
throws TransformerException
- Applies transformation.
Pre-compiled stylesheet should be used in a thread-safe manner grabbing
a new transformer before completing the transformation.
- Throws:
TransformerException
applyTransformation
public static void applyTransformation(InputStream srcIs,
OutputStream destOs,
InputStream templateIs,
Properties outputProps,
Properties xslParams)
throws TransformerException
- Applies template
templateIs
to xml source
srcIs
with output properties outputProps
and parameters xslParams
.
The resulting xml is written to destOs
- Throws:
TransformerException
applyTransformation
public static void applyTransformation(DOMSource srcIs,
OutputStream destOs,
InputStream templateIs,
Properties outputProps,
Properties xslParams)
throws TransformerException
- Throws:
TransformerException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.