javax.xml.bind.util
Class JAXBSource

java.lang.Object
  extended by javax.xml.transform.sax.SAXSource
      extended by javax.xml.bind.util.JAXBSource
All Implemented Interfaces:
javax.xml.transform.Source

public class JAXBSource
extends javax.xml.transform.sax.SAXSource

This utility class allows to use a JAXB object as the source of a stylesheet transformation.

Since:
JAXB1.0
Author:
JSR-31

Field Summary
 
Fields inherited from class javax.xml.transform.sax.SAXSource
FEATURE
 
Constructor Summary
JAXBSource(JAXBContext pContext, java.lang.Object pObject)
          Creates a new instance of JAXBSource.
JAXBSource(Marshaller pMarshaller, java.lang.Object pObject)
          Creates a new instance of JAXBSource.
 
Method Summary
 
Methods inherited from class javax.xml.transform.sax.SAXSource
getInputSource, getSystemId, getXMLReader, setInputSource, setSystemId, setXMLReader, sourceToInputSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBSource

public JAXBSource(JAXBContext pContext,
                  java.lang.Object pObject)
           throws JAXBException

Creates a new instance of JAXBSource. The given JAXBContext will be used to construct a Marshaller and invoke the constructor JAXBSource(javax.xml.bind.Marshaller, Object).

Throws:
JAXBException

JAXBSource

public JAXBSource(Marshaller pMarshaller,
                  java.lang.Object pObject)
           throws JAXBException

Creates a new instance of JAXBSource.

Throws:
JAXBException