Package org.exolab.castor.xml
Class Sax2EventFromStaxStreamProducer
- java.lang.Object
-
- org.exolab.castor.xml.BaseSax2EventFromStaxProducer
-
- org.exolab.castor.xml.Sax2EventFromStaxStreamProducer
-
- All Implemented Interfaces:
SAX2EventAndErrorProducer,SAX2EventProducer
public class Sax2EventFromStaxStreamProducer extends BaseSax2EventFromStaxProducer
-
-
Constructor Summary
Constructors Constructor Description Sax2EventFromStaxStreamProducer(javax.xml.stream.XMLStreamReader streamReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiddoEndPrefixMapping()(package private) voiddoStartPrefixMapping()For every declared namespace in the current event {@link getContentHandler().startPrefixMapping()} gets invoked.(package private) org.xml.sax.AttributesgetAttributes()(package private) char[]getCharacters()(package private) javax.xml.stream.LocationgetLocation()(package private) javax.xml.namespace.QNamegetQName()(package private) voidhandleSpace()Handles a space event.voidstart()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, handleStartDocument, handleStartElement, isIgnorableWhitespace, setContentHandler, setErrorHandler
-
-
-
-
Method Detail
-
start
public void start() throws org.xml.sax.SAXExceptionDescription copied from interface:SAX2EventProducerSignals to start producing events.- Throws:
org.xml.sax.SAXException
-
getQName
javax.xml.namespace.QName getQName()
- Specified by:
getQNamein classBaseSax2EventFromStaxProducer- Returns:
- QName of the current event
-
getCharacters
char[] getCharacters()
- Specified by:
getCharactersin classBaseSax2EventFromStaxProducer- Returns:
- characters of the current event.
-
handleSpace
void handleSpace() throws org.xml.sax.SAXExceptionDescription copied from class:BaseSax2EventFromStaxProducerHandles a space event.- Overrides:
handleSpacein classBaseSax2EventFromStaxProducer- Throws:
org.xml.sax.SAXException
-
doStartPrefixMapping
void doStartPrefixMapping() throws org.xml.sax.SAXExceptionDescription copied from class:BaseSax2EventFromStaxProducerFor every declared namespace in the current event {@link getContentHandler().startPrefixMapping()} gets invoked.- Specified by:
doStartPrefixMappingin classBaseSax2EventFromStaxProducer- Throws:
org.xml.sax.SAXException
-
doEndPrefixMapping
void doEndPrefixMapping() throws org.xml.sax.SAXException- Specified by:
doEndPrefixMappingin classBaseSax2EventFromStaxProducer- Throws:
org.xml.sax.SAXException
-
getAttributes
org.xml.sax.Attributes getAttributes()
- Specified by:
getAttributesin classBaseSax2EventFromStaxProducer- Returns:
- attributes of the current event
-
getLocation
javax.xml.stream.Location getLocation()
- Specified by:
getLocationin classBaseSax2EventFromStaxProducer- Returns:
- a Location
-
-