Class BaseXMLEventReader
java.lang.Object
javax.xml.stream.util.EventReaderDelegate
org.hibernate.boot.jaxb.internal.stax.BaseXMLEventReader
- All Implemented Interfaces:
Iterator<Object>
,XMLEventReader
- Direct Known Subclasses:
BufferedXMLEventReader
,FilteringXMLEventReader
Base for XMLEventReader that implements the
getElementText()
and nextTag()
APIs in a
way that is agnostic from the rest of the XMLEventReader implementation. Both will use the subclasses
internalNextEvent()
as the exclusive way to read events.
Note, copied from the uPortal project by permission of author. See
https://github.com/Jasig/uPortal/blob/master/uportal-war/src/main/java/org/jasig/portal/xml/stream/BaseXMLEventReader.java-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.xml.stream.util.EventReaderDelegate
close, getParent, getProperty, hasNext, peek, remove, setParent
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
-
Constructor Details
-
BaseXMLEventReader
-
-
Method Details
-
internalNextEvent
Subclass's version ofnextEvent()
, called bynext()
- Throws:
XMLStreamException
-
getPreviousEvent
- Returns:
- The XMLEvent returned by the last call to
internalNextEvent()
-
nextEvent
- Specified by:
nextEvent
in interfaceXMLEventReader
- Overrides:
nextEvent
in classEventReaderDelegate
- Throws:
XMLStreamException
-
next
- Specified by:
next
in interfaceIterator<Object>
- Overrides:
next
in classEventReaderDelegate
-
getElementText
- Specified by:
getElementText
in interfaceXMLEventReader
- Overrides:
getElementText
in classEventReaderDelegate
- Throws:
XMLStreamException
-
nextTag
- Specified by:
nextTag
in interfaceXMLEventReader
- Overrides:
nextTag
in classEventReaderDelegate
- Throws:
XMLStreamException
-