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
UnmarshallerHandler
getResult
in interface UnmarshallerHandler
JAXBException
- 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 ContentHandler
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String uri, String local, String qname, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public final void characters(char[] buf, int start, int len)
characters
in interface ContentHandler
public final void ignorableWhitespace(char[] buf, int start, int len)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
Copyright © 2018 JBoss by Red Hat. All rights reserved.