public final class SAXConnector extends Object implements UnmarshallerHandler
| Constructor and Description |
|---|
SAXConnector(XmlVisitor next,
LocatorEx externalLocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] buf,
int start,
int len) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
UnmarshallingContext |
getContext() |
Object |
getResult()
Obtains the unmarshalled result.
|
void |
ignorableWhitespace(char[] buf,
int start,
int len) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String local,
String qname,
Attributes atts) |
void |
startPrefixMapping(String prefix,
String uri) |
public SAXConnector(XmlVisitor next, LocatorEx externalLocator)
externalLocator - If the caller is producing SAX events from sources other than Unicode and angle brackets,
the caller can override the default SAX Locator object by this object
to provide better location information.public Object getResult() throws JAXBException, IllegalStateException
UnmarshallerHandlergetResult 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.public UnmarshallingContext getContext()
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerSAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerSAXExceptionpublic void startElement(String uri, String local, String qname, Attributes atts) throws SAXException
startElement in interface ContentHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerSAXExceptionpublic final void characters(char[] buf,
int start,
int len)
characters in interface ContentHandlerpublic final void ignorableWhitespace(char[] buf,
int start,
int len)
ignorableWhitespace in interface ContentHandlerpublic void processingInstruction(String target, String data)
processingInstruction in interface ContentHandlerpublic void skippedEntity(String name)
skippedEntity in interface ContentHandlerCopyright © 2018 JBoss by Red Hat. All rights reserved.