javax.xml.stream.util

Class EventReaderDelegate

public class EventReaderDelegate extends Object implements XMLEventReader

Base class for event reader filters.
Constructor Summary
EventReaderDelegate()
Constructs an empty filter with no parent set.
EventReaderDelegate(XMLEventReader reader)
Constructs an empty filter with the given parent.
Method Summary
voidclose()
StringgetElementText()
XMLEventReadergetParent()
Returns the parent.
ObjectgetProperty(String name)
booleanhasNext()
Objectnext()
XMLEventnextEvent()
XMLEventnextTag()
XMLEventpeek()
voidremove()
voidsetParent(XMLEventReader reader)
Sets the parent.

Constructor Detail

EventReaderDelegate

public EventReaderDelegate()
Constructs an empty filter with no parent set.

EventReaderDelegate

public EventReaderDelegate(XMLEventReader reader)
Constructs an empty filter with the given parent.

Method Detail

close

public void close()

getElementText

public String getElementText()

getParent

public XMLEventReader getParent()
Returns the parent.

getProperty

public Object getProperty(String name)

hasNext

public boolean hasNext()

next

public Object next()

nextEvent

public XMLEvent nextEvent()

nextTag

public XMLEvent nextTag()

peek

public XMLEvent peek()

remove

public void remove()

setParent

public void setParent(XMLEventReader reader)
Sets the parent.