| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class EventReaderDelegate extends Object implements XMLEventReader
This is the base class for deriving an XMLEventReader filter. This class is designed to sit between an XMLEventReader and an application's XMLEventReader. By default each method does nothing but call the corresponding method on the parent interface.
Constructor Summary | |
---|---|
Construct an empty filter with no parent. |
|
EventReaderDelegate(XMLEventReader reader) Construct an filter with the specified parent. |
Method Summary | |
---|---|
void |
close() |
String |
|
XMLEventReader |
Get the parent of this instance. |
Object |
getProperty(String name) |
boolean |
hasNext() |
Object |
next() |
XMLEvent |
|
XMLEvent |
nextTag() |
XMLEvent |
peek() |
void |
remove() |
void |
setParent(XMLEventReader reader) Set the parent of this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventReaderDelegate()
public EventReaderDelegate(XMLEventReader reader)
reader
- the parentMethod Detail |
---|
public void close() throws XMLStreamException
XMLStreamException
public String getElementText() throws XMLStreamException
XMLStreamException
public XMLEventReader getParent()
public Object getProperty(String name) throws IllegalArgumentException
name
IllegalArgumentException
public boolean hasNext()
public Object next()
public XMLEvent nextEvent() throws XMLStreamException
XMLStreamException
public XMLEvent nextTag() throws XMLStreamException
XMLStreamException
public XMLEvent peek() throws XMLStreamException
XMLStreamException
public void remove()
public void setParent(XMLEventReader reader)
reader
- the new parent
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |