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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
      extended by com.atlassian.confluence.content.render.xhtml.XmlFragmentEventReader
All Implemented Interfaces:
Iterator, XMLEventReader
Direct Known Subclasses:
XmlFragmentBodyEventReader

public class XmlFragmentEventReader
extends ForwardingXmlEventReader

Exposes the events of the body of a fragment including the start and end element of the fragment.


Field Summary
protected  int count
           
protected  boolean startEventConsumed
           
 
Fields inherited from class com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
delegate
 
Constructor Summary
XmlFragmentEventReader(XMLEventReader xmlEventReader)
           
 
Method Summary
 void close()
           
 Object getProperty(String name)
           
 boolean hasNext()
           
 Object next()
           
 XMLEvent nextEvent()
           
 XMLEvent nextTag()
           
 XMLEvent peek()
           
 
Methods inherited from class com.atlassian.confluence.content.render.xhtml.ForwardingXmlEventReader
getElementText, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count

startEventConsumed

protected boolean startEventConsumed
Constructor Detail

XmlFragmentEventReader

public XmlFragmentEventReader(XMLEventReader xmlEventReader)
                       throws XMLStreamException
Throws:
XMLStreamException
Method Detail

nextEvent

public XMLEvent nextEvent()
                   throws XMLStreamException
Specified by:
nextEvent in interface XMLEventReader
Overrides:
nextEvent in class ForwardingXmlEventReader
Throws:
XMLStreamException

hasNext

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

peek

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

nextTag

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

getProperty

public Object getProperty(String name)
                   throws IllegalArgumentException
Specified by:
getProperty in interface XMLEventReader
Overrides:
getProperty in class ForwardingXmlEventReader
Throws:
IllegalArgumentException

close

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

next

public Object next()
Specified by:
next in interface Iterator
Overrides:
next in class ForwardingXmlEventReader


Copyright © 2003–2015 Atlassian. All rights reserved.