org.apache.cocoon.stax.converter.util
Class XMLEventToContentHandler
java.lang.Object
org.apache.cocoon.stax.converter.util.XMLEventToContentHandler
public class XMLEventToContentHandler
- extends Object
This is a simple utility class that adapts StAX events from an
XMLEventReader
to SAX events on a ContentHandler
,
bridging between the two parser technologies.
- Version:
- 1.0, from stax-utils stable version stax-utils-20070216
- Author:
- Ryan.Shoemaker@Sun.COM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLEventToContentHandler
public XMLEventToContentHandler(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
convertEvent
public void convertEvent(XMLEvent event)
throws XMLStreamException
- Throws:
XMLStreamException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.