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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
All Implemented Interfaces:
Iterator, 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
protected  XMLEventReader delegate
           
 
Constructor Summary
ForwardingXmlEventReader(XMLEventReader delegate)
           
 
Method Summary
 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
 

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 interface XMLEventReader
Throws:
XMLStreamException

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Specified by:
hasNext in interface XMLEventReader

peek

public XMLEvent peek()
              throws XMLStreamException
Specified by:
peek in interface XMLEventReader
Throws:
XMLStreamException

getElementText

public String getElementText()
                      throws XMLStreamException
Specified by:
getElementText in interface XMLEventReader
Throws:
XMLStreamException

nextTag

public XMLEvent nextTag()
                 throws XMLStreamException
Specified by:
nextTag in interface XMLEventReader
Throws:
XMLStreamException

getProperty

public Object getProperty(String s)
                   throws IllegalArgumentException
Specified by:
getProperty in interface XMLEventReader
Throws:
IllegalArgumentException

close

public void close()
           throws XMLStreamException
Specified by:
close in interface XMLEventReader
Throws:
XMLStreamException

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2003-2012 Atlassian. All Rights Reserved.