Class SAXConnector
java.lang.Object
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector
- All Implemented Interfaces:
UnmarshallerHandler
,ContentHandler
Receives SAX events and convert them to our internal events.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
characters
(char[] buf, int start, int len) void
void
endElement
(String uri, String localName, String qName) void
endPrefixMapping
(String prefix) final void
ignorableWhitespace
(char[] buf, int start, int len) void
processingInstruction
(String target, String data) void
setDocumentLocator
(Locator locator) void
skippedEntity
(String name) void
void
startElement
(String uri, String local, String qname, Attributes atts) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SAXConnector
- Parameters:
externalLocator
- If the caller is producing SAX events from sources other than Unicode and angle brackets, the caller can override the default SAXLocator
object by this object to provide better location information.
-
-
Method Details
-
getResult
- Specified by:
getResult
in interfaceUnmarshallerHandler
- Throws:
JAXBException
IllegalStateException
-
getContext
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String uri, String local, String qname, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
public final void characters(char[] buf, int start, int len) - Specified by:
characters
in interfaceContentHandler
-
ignorableWhitespace
public final void ignorableWhitespace(char[] buf, int start, int len) - Specified by:
ignorableWhitespace
in interfaceContentHandler
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
-