com.sun.xml.bind.v2.runtime.unmarshaller

Class 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(XMLEventReader staxCore, XmlVisitor visitor)
Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream.
Method Summary
voidbridge()
protected LocationgetCurrentLocation()
protected StringgetCurrentQName()

Constructor Detail

StAXEventConnector

public StAXEventConnector(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 source visitor sink

Method Detail

bridge

public void bridge()

getCurrentLocation

protected Location getCurrentLocation()

getCurrentQName

protected String getCurrentQName()