com.sun.xml.bind.v2.runtime.unmarshaller
Class StAXEventConnector
java.lang.Object
com.sun.xml.bind.v2.runtime.unmarshaller.StAXConnector
com.sun.xml.bind.v2.runtime.unmarshaller.StAXEventConnector
final class StAXEventConnector
- extends StAXConnector
This is a simple utility class that adapts StAX events from an
XMLEventReader
to unmarshaller events on a
XmlVisitor
, bridging between the two
parser technologies.
Constructor Summary |
StAXEventConnector(javax.xml.stream.XMLEventReader staxCore,
XmlVisitor visitor)
Construct a new StAX to SAX adapter that will convert a StAX event
stream into a SAX event stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StAXEventConnector
public StAXEventConnector(javax.xml.stream.XMLEventReader staxCore,
XmlVisitor visitor)
- Construct a new StAX to SAX adapter that will convert a StAX event
stream into a SAX event stream.
- Parameters:
staxCore
- StAX event sourcevisitor
- sink
bridge
public void bridge()
throws javax.xml.stream.XMLStreamException
- Specified by:
bridge
in class StAXConnector
- Throws:
javax.xml.stream.XMLStreamException
getCurrentLocation
protected javax.xml.stream.Location getCurrentLocation()
- Description copied from class:
StAXConnector
- Gets the
Location
. Used for implementing the line number information.
- Specified by:
getCurrentLocation
in class StAXConnector
- Returns:
- must not null.
getCurrentQName
protected java.lang.String getCurrentQName()
- Description copied from class:
StAXConnector
- Gets the QName of the current element.
- Specified by:
getCurrentQName
in class StAXConnector