org.apache.cocoon.stax.converter.util
Class XMLEventToContentHandler

java.lang.Object
  extended by 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

Constructor Summary
XMLEventToContentHandler(XMLFilterImplEx filter)
          Construct a new StAX to SAX adapter that will convert a StAX event stream into a SAX event stream.
 
Method Summary
 void convertEvent(XMLEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 source
filter - SAX event sink
Method Detail

convertEvent

public void convertEvent(XMLEvent event)
                  throws XMLStreamException
Throws:
XMLStreamException


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.