public class XMLTransformer
extends java.lang.Object
| Constructor and Description |
|---|
XMLTransformer(java.io.InputStream theStylesheet)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Returns the content type that will be produced by the XSLT stylesheet
after transformation.
|
void |
transform(java.io.Reader theXml,
java.io.Writer theWriter)
Performs the actual transformation.
|
public XMLTransformer(java.io.InputStream theStylesheet)
throws javax.xml.transform.TransformerConfigurationException
theStylesheet - The input stream for the stylesheet to use for the
transformationsjavax.xml.transform.TransformerConfigurationException - if an error occurs when
creating the XSL templatespublic java.lang.String getContentType()
public void transform(java.io.Reader theXml,
java.io.Writer theWriter)
throws javax.xml.transform.TransformerException
theXml - The XML source to transformtheWriter - The writer to which the transformation result should be
written.javax.xml.transform.TransformerException - if an error occurs when applying the
XSL template to the XML sourceCopyright © 2000-2004 Apache Software Foundation. All Rights Reserved.