Javax.xml.bind.Util.JAXBSource Class
Introduction
The javax.xml.bind.Util.JAXBSource class utility is useful to combine JAXB with other Java/XML technologies.This is the JAXP Source implementation that marshals a JAXB-generated object.
Class declaration
Following is the declaration for javax.xml.bind.Util.JAXBSource class −
public class JAXBSource extends SAXSource
Field
Following are the fields for javax.xml.bind.Util.JAXBSource class −
static String FEATURE − If TransformerFactory.getFeature(java.lang.String) returns true when passed this value as an argument, the Transformer supports Source input of this type.
Class constructors
| S.N. | Constructor & Description |
|---|---|
| 1 | JAXBSource(JAXBContext context, Object contentObject) This creates a new Source for the given content object. |
| 2 | JAXBSource(Marshaller marshaller, Object contentObject) This creates a new Source for the given content object. |
Class methods
This class inherits methods from the following classes −
- javax.xml.transform.sax.SAXResult
- java.lang.object