Class JAXBUnmarshallerHandler

  • All Implemented Interfaces:
    javax.xml.bind.UnmarshallerHandler, org.eclipse.persistence.internal.oxm.record.ExtendedContentHandler, org.xml.sax.ContentHandler

    public class JAXBUnmarshallerHandler
    extends SAXDocumentBuilder
    implements javax.xml.bind.UnmarshallerHandler

    Implementation of UnmarshallerHandler to be used by JAXBUnmarshaller.

    See Also:
    JAXBUnmarshaller, UnmarshallerHandler
    • Constructor Detail

      • JAXBUnmarshallerHandler

        public JAXBUnmarshallerHandler​(JAXBUnmarshaller newXMLUnmarshaller)
        Create a new JAXBUnmarshallerHandler with the specified JAXBUnmarshaller
        Parameters:
        newXMLUnmarshaller - the JAXBUnmarshaller.
    • Method Detail

      • endDocument

        public void endDocument()
                         throws org.xml.sax.SAXException
        Event that is called at the end of processing the document.
        Specified by:
        endDocument in interface org.xml.sax.ContentHandler
        Overrides:
        endDocument in class SAXDocumentBuilder
        Throws:
        org.xml.sax.SAXException
      • startDocument

        public void startDocument()
                           throws org.xml.sax.SAXException
        Event that is called at the start of processing the document.
        Specified by:
        startDocument in interface org.xml.sax.ContentHandler
        Overrides:
        startDocument in class SAXDocumentBuilder
        Throws:
        org.xml.sax.SAXException
      • getResult

        public java.lang.Object getResult()
                                   throws javax.xml.bind.JAXBException,
                                          java.lang.IllegalStateException
        Return the unmarhalled document. If the document is null or the endDocument was never called then an IllegalStateExcpetion will be thrown.
        Specified by:
        getResult in interface javax.xml.bind.UnmarshallerHandler
        Throws:
        javax.xml.bind.JAXBException
        java.lang.IllegalStateException