Class ForwardingXmlEventReader
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
-
- All Implemented Interfaces:
Iterator<Object>
,XMLEventReader
- Direct Known Subclasses:
ElementTransformingXmlEventReader
,ResettableXmlEventReader
,TextExtractingXmlFragmentEventReader
,XmlFragmentEventReader
public class ForwardingXmlEventReader extends Object implements XMLEventReader
Class delegates all calls to an {code}XMLEventReader{code} passed to the constructor.
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLEventReader
delegate
-
Constructor Summary
Constructors Constructor Description ForwardingXmlEventReader(XMLEventReader delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
String
getElementText()
Object
getProperty(String s)
boolean
hasNext()
Object
next()
XMLEvent
nextEvent()
XMLEvent
nextTag()
XMLEvent
peek()
void
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
-
-
-
-
Field Detail
-
delegate
protected XMLEventReader delegate
-
-
Constructor Detail
-
ForwardingXmlEventReader
public ForwardingXmlEventReader(XMLEventReader delegate)
-
-
Method Detail
-
nextEvent
public XMLEvent nextEvent() throws XMLStreamException
- Specified by:
nextEvent
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<Object>
- Specified by:
hasNext
in interfaceXMLEventReader
-
peek
public XMLEvent peek() throws XMLStreamException
- Specified by:
peek
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
getElementText
public String getElementText() throws XMLStreamException
- Specified by:
getElementText
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
nextTag
public XMLEvent nextTag() throws XMLStreamException
- Specified by:
nextTag
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String s) throws IllegalArgumentException
- Specified by:
getProperty
in interfaceXMLEventReader
- Throws:
IllegalArgumentException
-
close
public void close() throws XMLStreamException
- Specified by:
close
in interfaceXMLEventReader
- Throws:
XMLStreamException
-
-