XMLEventReader to unmarshaller events on a
XmlVisitor, bridging between the two
parser technologies.
| Modifier and Type | Field and Description |
|---|---|
| private final AttributesImpl | attrs
Shared and reused |
| private final StringBuilder | buffer
SAX may fire consective characters event, but we don't allow it. |
| private XMLEvent | event
Current event. |
| private boolean | |
| private final XMLEventReader |
| Access | Constructor and Description |
|---|---|
| public | StAXEventConnector(XMLEventReader
StAX event source staxCore, XmlVisitor sink visitor)Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | bridge()
Implements abstract org.
|
| private Attributes | Returns: the StAX attributes converted to an org.xml.sax.AttributesGet the attributes associated with the given START_ELEMENT StAXevent. |
| protected Location | getCurrentLocation()
Implements abstract org. Gets the |
| protected String | getCurrentQName()
Implements abstract org. Gets the QName of the current element. |
| private void | |
| private void | |
| private void | |
| private boolean | |
| private boolean |
| attrs | back to summary |
|---|---|
| private final AttributesImpl attrs Shared and reused | |
| buffer | back to summary |
|---|---|
| private final StringBuilder buffer SAX may fire consective characters event, but we don't allow it. so use this buffer to perform buffering. | |
| event | back to summary |
|---|---|
| private XMLEvent event Current event. | |
| seenText | back to summary |
|---|---|
| private boolean seenText | |
| staxEventReader | back to summary |
|---|---|
| private final XMLEventReader staxEventReader | |
| StAXEventConnector | back to summary |
|---|---|
| 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.
| |
| bridge | back to summary |
|---|---|
| public void bridge() throws XMLStreamException Implements abstract org.
| |
| getAttributes | back to summary |
|---|---|
| private Attributes getAttributes(StartElement event) Get the attributes associated with the given START_ELEMENT StAXevent.
| |
| getCurrentLocation | back to summary |
|---|---|
| protected Location getCurrentLocation() Implements abstract org. Doc from org. Gets the
| |
| getCurrentQName | back to summary |
|---|---|
| protected String getCurrentQName() Implements abstract org. Doc from org. Gets the QName of the current element.
| |
| handleCharacters | back to summary |
|---|---|
| private void handleCharacters(Characters event) throws SAXException, XMLStreamException | |
| handleEndElement | back to summary |
|---|---|
| private void handleEndElement(EndElement event) throws SAXException | |
| handleStartElement | back to summary |
|---|---|
| private void handleStartElement(StartElement event) throws SAXException | |
| isIgnorable | back to summary |
|---|---|
| private boolean isIgnorable(XMLEvent event) | |
| isTag | back to summary |
|---|---|
| private boolean isTag(XMLEvent event) | |