org.eclipse.persistence.platform.xml.jaxp
Class JAXPTransformer
java.lang.Object
org.eclipse.persistence.platform.xml.jaxp.JAXPTransformer
- All Implemented Interfaces:
- XMLTransformer
public class JAXPTransformer
- extends java.lang.Object
- implements XMLTransformer
Purpose: An implementation of XMLTransformer using JAXP 1.3 APIs.
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXPTransformer
public JAXPTransformer()
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interface XMLTransformer
setEncoding
public void setEncoding(java.lang.String encoding)
- Specified by:
setEncoding
in interface XMLTransformer
isFormattedOutput
public boolean isFormattedOutput()
- Specified by:
isFormattedOutput
in interface XMLTransformer
setFormattedOutput
public void setFormattedOutput(boolean shouldFormat)
- Specified by:
setFormattedOutput
in interface XMLTransformer
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interface XMLTransformer
setVersion
public void setVersion(java.lang.String version)
- Specified by:
setVersion
in interface XMLTransformer
transform
public void transform(org.w3c.dom.Node sourceNode,
java.io.OutputStream resultOutputStream)
throws XMLPlatformException
- Specified by:
transform
in interface XMLTransformer
- Throws:
XMLPlatformException
transform
public void transform(org.w3c.dom.Node sourceNode,
org.xml.sax.ContentHandler resultContentHandler)
throws XMLPlatformException
- Specified by:
transform
in interface XMLTransformer
- Throws:
XMLPlatformException
transform
public void transform(org.w3c.dom.Node sourceNode,
javax.xml.transform.Result result)
throws XMLPlatformException
- Specified by:
transform
in interface XMLTransformer
- Throws:
XMLPlatformException
transform
public void transform(org.w3c.dom.Node sourceNode,
java.io.Writer resultWriter)
throws XMLPlatformException
- Specified by:
transform
in interface XMLTransformer
- Throws:
XMLPlatformException
transform
public void transform(javax.xml.transform.Source source,
javax.xml.transform.Result result)
throws XMLPlatformException
- Specified by:
transform
in interface XMLTransformer
- Throws:
XMLPlatformException
transform
public void transform(org.w3c.dom.Document sourceDocument,
org.w3c.dom.Node resultParentNode,
java.net.URL stylesheet)
throws XMLPlatformException
- Specified by:
transform
in interface XMLTransformer
- Throws:
XMLPlatformException
setFragment
public void setFragment(boolean fragment)
- Specified by:
setFragment
in interface XMLTransformer
isFragment
public boolean isFragment()
- Specified by:
isFragment
in interface XMLTransformer
getTransformer
public javax.xml.transform.Transformer getTransformer()