public abstract class StAXHandlerAbstract extends Object implements StAXHandlerInterface
Constructor and Description |
---|
StAXHandlerAbstract() |
Modifier and Type | Method and Description |
---|---|
void |
handle(XMLStreamReader xmlr,
XMLStreamWriter xmlWriter) |
abstract void |
handleCharacters(XMLStreamReader xmlr,
XMLStreamWriter writer)
Implement this method; for an example, see VariableReplaceStAX sample
|
void |
write(XMLStreamReader xmlr,
XMLStreamWriter writer)
This is designed to cater for the common case of replacing character content.
|
public abstract void handleCharacters(XMLStreamReader xmlr, XMLStreamWriter writer) throws XMLStreamException
xmlr
- writer
- XMLStreamException
public void handle(XMLStreamReader xmlr, XMLStreamWriter xmlWriter) throws LocationAwareXMLStreamException, XMLStreamException
handle
in interface StAXHandlerInterface
LocationAwareXMLStreamException
XMLStreamException
public void write(XMLStreamReader xmlr, XMLStreamWriter writer) throws XMLStreamException
xmlr
- writer
- XMLStreamException
Copyright © 2007-2019. All Rights Reserved.