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
public class ElementTransformingXmlEventReader extends ForwardingXmlEventReader
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 ofElementTransformer
configured.- See Also:
ElementTransformer
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
delegate
-
-
Constructor Summary
Constructors Constructor Description ElementTransformingXmlEventReader(XMLEventReader delegate, List<ElementTransformer> elementTransformers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
next()
XMLEvent
nextEvent()
XMLEvent
nextTag()
XMLEvent
peek()
-
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 Detail
-
ElementTransformingXmlEventReader
public ElementTransformingXmlEventReader(XMLEventReader delegate, List<ElementTransformer> elementTransformers)
-
-
Method Detail
-
peek
public XMLEvent peek() throws XMLStreamException
- Specified by:
peek
in interfaceXMLEventReader
- Overrides:
peek
in classForwardingXmlEventReader
- Throws:
XMLStreamException
-
nextEvent
public XMLEvent nextEvent() throws XMLStreamException
- Specified by:
nextEvent
in interfaceXMLEventReader
- Overrides:
nextEvent
in classForwardingXmlEventReader
- Throws:
XMLStreamException
-
nextTag
public XMLEvent nextTag() throws XMLStreamException
- Specified by:
nextTag
in interfaceXMLEventReader
- Overrides:
nextTag
in classForwardingXmlEventReader
- Throws:
XMLStreamException
-
-