public abstract class BaseSax2EventFromStaxProducer extends Object implements SAX2EventAndErrorProducer
Sax2EventFromStaxEventProducer
and
Sax2EventFromStaxStreamProducer
. It consumes StAX events and
produces SAX2 events.Constructor and Description |
---|
BaseSax2EventFromStaxProducer() |
Modifier and Type | Method and Description |
---|---|
static SAX2EventAndErrorProducer |
createSax2EventFromStax(XMLEventReader eventReader) |
static SAX2EventAndErrorProducer |
createSax2EventFromStax(XMLStreamReader streamReader) |
ContentHandler |
getContentHandler() |
ErrorHandler |
getErrorHandler() |
Stack<List<String>> |
getPrefixes() |
protected Locator |
getSAXLocator(Location location)
|
void |
setContentHandler(ContentHandler contentHandler)
Sets the SAX2 ContentHandler to send SAX 2 events to
|
void |
setErrorHandler(ErrorHandler errorHandler)
Sets the SAX2 ErrorHandler to send SAX 2 errors to
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
public static SAX2EventAndErrorProducer createSax2EventFromStax(XMLStreamReader streamReader)
public static SAX2EventAndErrorProducer createSax2EventFromStax(XMLEventReader eventReader)
public void setContentHandler(ContentHandler contentHandler)
SAX2EventProducer
setContentHandler
in interface SAX2EventProducer
public void setErrorHandler(ErrorHandler errorHandler)
SAX2EventAndErrorProducer
setErrorHandler
in interface SAX2EventAndErrorProducer
public ContentHandler getContentHandler()
public ErrorHandler getErrorHandler()
Copyright © 2018. All rights reserved.