Package org.exolab.castor.xml
Class Sax2EventFromStaxEventProducer
java.lang.Object
org.exolab.castor.xml.BaseSax2EventFromStaxProducer
org.exolab.castor.xml.Sax2EventFromStaxEventProducer
- All Implemented Interfaces:
SAX2EventAndErrorProducer
,SAX2EventProducer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
For every declared namespace in the current event invalid input: '{@link getContentHandler().startPrefixMapping()'} gets invoked.(package private) Attributes
(package private) char[]
(package private) Location
(package private) QName
getQName()
void
start()
Signals to start producing events.Methods inherited from class org.exolab.castor.xml.BaseSax2EventFromStaxProducer
createSax2EventFromStax, createSax2EventFromStax, getContentHandler, getErrorHandler, getNonEmpty, getPrefixes, getQName, getSAXLocator, handleCharacters, handleEndDocument, handleEndElement, handleEventType, handleSpace, handleStartDocument, handleStartElement, isIgnorableWhitespace, setContentHandler, setErrorHandler
-
Constructor Details
-
Sax2EventFromStaxEventProducer
-
-
Method Details
-
start
Description copied from interface:SAX2EventProducer
Signals to start producing events.- Throws:
SAXException
-
getQName
QName getQName()- Specified by:
getQName
in classBaseSax2EventFromStaxProducer
- Returns:
- QName of the current event
-
getCharacters
char[] getCharacters()- Specified by:
getCharacters
in classBaseSax2EventFromStaxProducer
- Returns:
- characters of the current event.
-
doStartPrefixMapping
Description copied from class:BaseSax2EventFromStaxProducer
For every declared namespace in the current event invalid input: '{@link getContentHandler().startPrefixMapping()'} gets invoked.- Specified by:
doStartPrefixMapping
in classBaseSax2EventFromStaxProducer
- Throws:
SAXException
-
doEndPrefixMapping
- Specified by:
doEndPrefixMapping
in classBaseSax2EventFromStaxProducer
- Throws:
SAXException
-
getAttributes
Attributes getAttributes()- Specified by:
getAttributes
in classBaseSax2EventFromStaxProducer
- Returns:
- attributes of the current event
-
getLocation
Location getLocation()- Specified by:
getLocation
in classBaseSax2EventFromStaxProducer
- Returns:
- a Location
-