com.atlassian.confluence.content.render.xhtml
Class ForwardingXmlEventReader

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
All Implemented Interfaces:
java.util.Iterator, javax.xml.stream.XMLEventReader
Direct Known Subclasses:
ElementTransformingXmlEventReader, ResettableXmlEventReader, TextExtractingXmlFragmentEventReader, XmlFragmentEventReader

public class ForwardingXmlEventReader
extends java.lang.Object
implements javax.xml.stream.XMLEventReader

Class delegates all calls to an {code}XMLEventReader{code} passed to the constructor.


Field Summary
protected  javax.xml.stream.XMLEventReader delegate
           
 
Constructor Summary
ForwardingXmlEventReader(javax.xml.stream.XMLEventReader delegate)
           
 
Method Summary
 void close()
           
 java.lang.String getElementText()
           
 java.lang.Object getProperty(java.lang.String s)
           
 boolean hasNext()
           
 java.lang.Object next()
           
 javax.xml.stream.events.XMLEvent nextEvent()
           
 javax.xml.stream.events.XMLEvent nextTag()
           
 javax.xml.stream.events.XMLEvent peek()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected javax.xml.stream.XMLEventReader delegate
Constructor Detail

ForwardingXmlEventReader

public ForwardingXmlEventReader(javax.xml.stream.XMLEventReader delegate)
Method Detail

nextEvent

public javax.xml.stream.events.XMLEvent nextEvent()
                                           throws javax.xml.stream.XMLStreamException
Specified by:
nextEvent in interface javax.xml.stream.XMLEventReader
Throws:
javax.xml.stream.XMLStreamException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface javax.xml.stream.XMLEventReader

peek

public javax.xml.stream.events.XMLEvent peek()
                                      throws javax.xml.stream.XMLStreamException
Specified by:
peek in interface javax.xml.stream.XMLEventReader
Throws:
javax.xml.stream.XMLStreamException

getElementText

public java.lang.String getElementText()
                                throws javax.xml.stream.XMLStreamException
Specified by:
getElementText in interface javax.xml.stream.XMLEventReader
Throws:
javax.xml.stream.XMLStreamException

nextTag

public javax.xml.stream.events.XMLEvent nextTag()
                                         throws javax.xml.stream.XMLStreamException
Specified by:
nextTag in interface javax.xml.stream.XMLEventReader
Throws:
javax.xml.stream.XMLStreamException

getProperty

public java.lang.Object getProperty(java.lang.String s)
                             throws java.lang.IllegalArgumentException
Specified by:
getProperty in interface javax.xml.stream.XMLEventReader
Throws:
java.lang.IllegalArgumentException

close

public void close()
           throws javax.xml.stream.XMLStreamException
Specified by:
close in interface javax.xml.stream.XMLEventReader
Throws:
javax.xml.stream.XMLStreamException

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2003-2014 Atlassian. All Rights Reserved.