Class ElementTransformingXmlEventReader
java.lang.Object
com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
com.atlassian.confluence.content.render.xhtml.ElementTransformingXmlEventReader
- All Implemented Interfaces:
Iterator<Object>
,XMLEventReader
An XMLEventReader that can be configured with multiple ElementTransformers potentially
changing the start and end elements returned by the reader. The order of the element transforms
is controlled by the order of the List of
ElementTransformer
configured.- See Also:
-
Field Summary
Fields inherited from class com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
delegate
-
Constructor Summary
ConstructorDescriptionElementTransformingXmlEventReader
(XMLEventReader delegate, List<ElementTransformer> elementTransformers) -
Method Summary
Methods inherited from class com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
close, getElementText, getProperty, hasNext, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ElementTransformingXmlEventReader
public ElementTransformingXmlEventReader(XMLEventReader delegate, List<ElementTransformer> elementTransformers)
-
-
Method Details
-
peek
- Specified by:
peek
in interfaceXMLEventReader
- Overrides:
peek
in classForwardingXmlEventReader
- Throws:
XMLStreamException
-
nextEvent
- Specified by:
nextEvent
in interfaceXMLEventReader
- Overrides:
nextEvent
in classForwardingXmlEventReader
- Throws:
XMLStreamException
-
nextTag
- Specified by:
nextTag
in interfaceXMLEventReader
- Overrides:
nextTag
in classForwardingXmlEventReader
- Throws:
XMLStreamException
-
next
- Specified by:
next
in interfaceIterator<Object>
- Overrides:
next
in classForwardingXmlEventReader
-