Package org.mule.soapkit.soap.xml.stax
Class XMLStreamReaderToContentHandler
java.lang.Object
org.mule.soapkit.soap.xml.stax.XMLStreamReaderToContentHandler
- All Implemented Interfaces:
javanet.staxutils.StAXReaderToContentHandler
public class XMLStreamReaderToContentHandler
extends Object
implements javanet.staxutils.StAXReaderToContentHandler
This is a simple utility class that adapts StAX events from an
XMLStreamReader to SAX events on a
ContentHandler, bridging between the two parser technologies.- Version:
- 1.0
- Author:
- Ryan.Shoemaker@Sun.COM
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXMLStreamReaderToContentHandler(XMLStreamReader staxCore, javanet.staxutils.helpers.XMLFilterImplEx filter) Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidbridge()protected AttributesGet the attributes associated with the given START_ELEMENT or ATTRIBUTE StAXevent.protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidhandlePI()protected voidprotected voidprotected void
-
Field Details
-
PREFIX_PATTERN
-
-
Constructor Details
-
XMLStreamReaderToContentHandler
public XMLStreamReaderToContentHandler(XMLStreamReader staxCore, javanet.staxutils.helpers.XMLFilterImplEx filter) Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream.- Parameters:
staxCore- StAX event sourcefilter- SAX event sink
-
-
Method Details
-
bridge
- Specified by:
bridgein interfacejavanet.staxutils.StAXReaderToContentHandler- Throws:
XMLStreamException
-
handleEndDocument
- Throws:
SAXException
-
handleStartDocument
- Throws:
SAXException
-
handlePI
- Throws:
XMLStreamException
-
handleCharacters
- Throws:
XMLStreamException
-
handleEndElement
- Throws:
XMLStreamException
-
handleStartElement
- Throws:
XMLStreamException
-
getAttributes
Get the attributes associated with the given START_ELEMENT or ATTRIBUTE StAXevent.- Returns:
- the StAX attributes converted to an org.xml.sax.Attributes
- Throws:
SAXException
-
handleNamespace
protected void handleNamespace() -
handleAttribute
protected void handleAttribute() -
handleDTD
protected void handleDTD() -
handleComment
- Throws:
XMLStreamException
-
handleEntityReference
protected void handleEntityReference() -
handleSpace
protected void handleSpace() -
handleNotationDecl
protected void handleNotationDecl() -
handleEntityDecl
protected void handleEntityDecl() -
handleCDATA
- Throws:
XMLStreamException
-