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
|
Method Summary |
(package private) void |
doEndPrefixMapping()
|
(package private) void |
doStartPrefixMapping()
For every declared namespace in the current event getContentHandler().startPrefixMapping() gets invoked. |
(package private) org.xml.sax.Attributes |
getAttributes()
|
(package private) char[] |
getCharacters()
|
(package private) javax.xml.stream.Location |
getLocation()
|
(package private) javax.xml.namespace.QName |
getQName()
|
(package private) void |
handleSpace()
Handles a space event. |
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, handleStartDocument, handleStartElement, isIgnorableWhitespace, setContentHandler, setErrorHandler |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sax2EventFromStaxStreamProducer
public Sax2EventFromStaxStreamProducer(javax.xml.stream.XMLStreamReader streamReader)
start
public void start()
throws org.xml.sax.SAXException
- Description copied from interface:
SAX2EventProducer
- Signals to start producing events.
- Throws:
org.xml.sax.SAXException
getQName
javax.xml.namespace.QName getQName()
- Specified by:
getQName in class BaseSax2EventFromStaxProducer
- Returns:
- QName of the current event
getCharacters
char[] getCharacters()
- Specified by:
getCharacters in class BaseSax2EventFromStaxProducer
- Returns:
- characters of the current event.
handleSpace
void handleSpace()
throws org.xml.sax.SAXException
- Description copied from class:
BaseSax2EventFromStaxProducer
- Handles a space event.
- Overrides:
handleSpace in class BaseSax2EventFromStaxProducer
- Throws:
org.xml.sax.SAXException
doStartPrefixMapping
void doStartPrefixMapping()
throws org.xml.sax.SAXException
- Description copied from class:
BaseSax2EventFromStaxProducer
- For every declared namespace in the current event
getContentHandler().startPrefixMapping() gets invoked.
- Specified by:
doStartPrefixMapping in class BaseSax2EventFromStaxProducer
- Throws:
org.xml.sax.SAXException
doEndPrefixMapping
void doEndPrefixMapping()
throws org.xml.sax.SAXException
- Specified by:
doEndPrefixMapping in class BaseSax2EventFromStaxProducer
- Throws:
org.xml.sax.SAXException
getAttributes
org.xml.sax.Attributes getAttributes()
- Specified by:
getAttributes in class BaseSax2EventFromStaxProducer
- Returns:
- attributes of the current event
getLocation
javax.xml.stream.Location getLocation()
- Specified by:
getLocation in class BaseSax2EventFromStaxProducer
- Returns:
- a Location
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com