public class JAXPTransformer extends java.lang.Object implements XMLTransformer
Purpose: An implementation of XMLTransformer using JAXP 1.3 APIs.
Constructor and Description |
---|
JAXPTransformer() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncoding() |
javax.xml.transform.Transformer |
getTransformer() |
java.lang.String |
getVersion() |
boolean |
isFormattedOutput() |
boolean |
isFragment() |
void |
setEncoding(java.lang.String encoding) |
void |
setFormattedOutput(boolean shouldFormat) |
void |
setFragment(boolean fragment) |
void |
setVersion(java.lang.String version) |
void |
transform(org.w3c.dom.Document sourceDocument,
org.w3c.dom.Node resultParentNode,
java.net.URL stylesheet) |
void |
transform(org.w3c.dom.Node sourceNode,
org.xml.sax.ContentHandler resultContentHandler) |
void |
transform(org.w3c.dom.Node sourceNode,
java.io.OutputStream resultOutputStream) |
void |
transform(org.w3c.dom.Node sourceNode,
javax.xml.transform.Result result) |
void |
transform(org.w3c.dom.Node sourceNode,
java.io.Writer resultWriter) |
void |
transform(javax.xml.transform.Source source,
javax.xml.transform.Result result) |
public java.lang.String getEncoding()
getEncoding
in interface XMLTransformer
public void setEncoding(java.lang.String encoding)
setEncoding
in interface XMLTransformer
public boolean isFormattedOutput()
isFormattedOutput
in interface XMLTransformer
public void setFormattedOutput(boolean shouldFormat)
setFormattedOutput
in interface XMLTransformer
public java.lang.String getVersion()
getVersion
in interface XMLTransformer
public void setVersion(java.lang.String version)
setVersion
in interface XMLTransformer
public void transform(org.w3c.dom.Node sourceNode, java.io.OutputStream resultOutputStream) throws XMLPlatformException
transform
in interface XMLTransformer
XMLPlatformException
public void transform(org.w3c.dom.Node sourceNode, org.xml.sax.ContentHandler resultContentHandler) throws XMLPlatformException
transform
in interface XMLTransformer
XMLPlatformException
public void transform(org.w3c.dom.Node sourceNode, javax.xml.transform.Result result) throws XMLPlatformException
transform
in interface XMLTransformer
XMLPlatformException
public void transform(org.w3c.dom.Node sourceNode, java.io.Writer resultWriter) throws XMLPlatformException
transform
in interface XMLTransformer
XMLPlatformException
public void transform(javax.xml.transform.Source source, javax.xml.transform.Result result) throws XMLPlatformException
transform
in interface XMLTransformer
XMLPlatformException
public void transform(org.w3c.dom.Document sourceDocument, org.w3c.dom.Node resultParentNode, java.net.URL stylesheet) throws XMLPlatformException
transform
in interface XMLTransformer
XMLPlatformException
public void setFragment(boolean fragment)
setFragment
in interface XMLTransformer
public boolean isFragment()
isFragment
in interface XMLTransformer
public javax.xml.transform.Transformer getTransformer()