Package javanet.staxutils
Class BaseXMLEventReader
- java.lang.Object
-
- javanet.staxutils.BaseXMLEventReader
-
- All Implemented Interfaces:
Iterator<Object>,XMLEventReader
- Direct Known Subclasses:
ListEventReader
public abstract class BaseXMLEventReader extends Object implements XMLEventReader
Abstract base class forXMLEventReaderimplementations.- Version:
- $Revision: 1.1 $
- Author:
- Christian Niles
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclosedWhether we've been closed or not.
-
Constructor Summary
Constructors Constructor Description BaseXMLEventReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetElementText()ObjectgetProperty(String name)Objectnext()XMLEventnextTag()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface javax.xml.stream.XMLEventReader
hasNext, nextEvent, peek
-
-
-
-
Method Detail
-
getElementText
public String getElementText() throws XMLStreamException
- Specified by:
getElementTextin interfaceXMLEventReader- Throws:
XMLStreamException
-
nextTag
public XMLEvent nextTag() throws XMLStreamException
- Specified by:
nextTagin interfaceXMLEventReader- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin interfaceXMLEventReader- Throws:
IllegalArgumentException
-
close
public void close() throws XMLStreamException- Specified by:
closein interfaceXMLEventReader- Throws:
XMLStreamException
-
-