public class JAXBUnmarshallerHandler extends SAXDocumentBuilder implements UnmarshallerHandler
Implementation of UnmarshallerHandler to be used by JAXBUnmarshaller.
JAXBUnmarshaller,
UnmarshallerHandlerdocument, locator, namespaceDeclarations, nodes, stringBuffer, xmlPlatform| Constructor and Description |
|---|
JAXBUnmarshallerHandler(JAXBUnmarshaller newXMLUnmarshaller)
Create a new JAXBUnmarshallerHandler with the specified JAXBUnmarshaller
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocument()
Event that is called at the end of processing the document.
|
Object |
getResult()
Return the unmarhalled document.
|
void |
startDocument()
Event that is called at the start of processing the document.
|
addNamespaceDeclaration, appendChildNode, characters, characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, getDocument, getInitializedDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, setNil, skippedEntity, startCDATA, startDTD, startElement, startEntity, startPrefixMappingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMappingpublic JAXBUnmarshallerHandler(JAXBUnmarshaller newXMLUnmarshaller)
newXMLUnmarshaller - the JAXBUnmarshaller.public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class SAXDocumentBuilderSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class SAXDocumentBuilderSAXExceptionpublic Object getResult() throws JAXBException, IllegalStateException
getResult in interface UnmarshallerHandlerJAXBException - if there is any unmarshalling error.
Note that the implementation is allowed to throw SAXException
during the parsing when it finds an error.IllegalStateException - if this method is called before this handler
receives the endDocument event.Copyright © 2017–2020 Eclipse.org - EclipseLink Project. All rights reserved.