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, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
nextEventin interfaceXMLEventReader- Overrides:
nextEventin classEventReaderDelegate- Throws:
XMLStreamException
-
next
- Specified by:
nextin interfaceIterator<Object>- Overrides:
nextin classEventReaderDelegate
-
getElementText
- Specified by:
getElementTextin interfaceXMLEventReader- Overrides:
getElementTextin classEventReaderDelegate- Throws:
XMLStreamException
-
nextTag
- Specified by:
nextTagin interfaceXMLEventReader- Overrides:
nextTagin classEventReaderDelegate- Throws:
XMLStreamException
-