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.
-
-
Constructor Summary
Constructors Constructor Description JAXPTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(javax.xml.transform.Source source, javax.xml.transform.Result result)
void
transform(org.w3c.dom.Document sourceDocument, org.w3c.dom.Node resultParentNode, java.net.URL stylesheet)
void
transform(org.w3c.dom.Node sourceNode, java.io.OutputStream resultOutputStream)
void
transform(org.w3c.dom.Node sourceNode, java.io.Writer resultWriter)
void
transform(org.w3c.dom.Node sourceNode, javax.xml.transform.Result result)
void
transform(org.w3c.dom.Node sourceNode, org.xml.sax.ContentHandler resultContentHandler)
-
-
-
Method Detail
-
getEncoding
public java.lang.String getEncoding()
- Specified by:
getEncoding
in interfaceXMLTransformer
-
setEncoding
public void setEncoding(java.lang.String encoding)
- Specified by:
setEncoding
in interfaceXMLTransformer
-
isFormattedOutput
public boolean isFormattedOutput()
- Specified by:
isFormattedOutput
in interfaceXMLTransformer
-
setFormattedOutput
public void setFormattedOutput(boolean shouldFormat)
- Specified by:
setFormattedOutput
in interfaceXMLTransformer
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interfaceXMLTransformer
-
setVersion
public void setVersion(java.lang.String version)
- Specified by:
setVersion
in interfaceXMLTransformer
-
transform
public void transform(org.w3c.dom.Node sourceNode, java.io.OutputStream resultOutputStream) throws XMLPlatformException
- Specified by:
transform
in interfaceXMLTransformer
- Throws:
XMLPlatformException
-
transform
public void transform(org.w3c.dom.Node sourceNode, org.xml.sax.ContentHandler resultContentHandler) throws XMLPlatformException
- Specified by:
transform
in interfaceXMLTransformer
- Throws:
XMLPlatformException
-
transform
public void transform(org.w3c.dom.Node sourceNode, javax.xml.transform.Result result) throws XMLPlatformException
- Specified by:
transform
in interfaceXMLTransformer
- Throws:
XMLPlatformException
-
transform
public void transform(org.w3c.dom.Node sourceNode, java.io.Writer resultWriter) throws XMLPlatformException
- Specified by:
transform
in interfaceXMLTransformer
- Throws:
XMLPlatformException
-
transform
public void transform(javax.xml.transform.Source source, javax.xml.transform.Result result) throws XMLPlatformException
- Specified by:
transform
in interfaceXMLTransformer
- 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 interfaceXMLTransformer
- Throws:
XMLPlatformException
-
setFragment
public void setFragment(boolean fragment)
- Specified by:
setFragment
in interfaceXMLTransformer
-
isFragment
public boolean isFragment()
- Specified by:
isFragment
in interfaceXMLTransformer
-
getTransformer
public javax.xml.transform.Transformer getTransformer()
-
-