public class JpaOrmXmlEventReader extends EventReaderDelegate
orm.xml
specific StAX EVentReader to handle a few oddities.
Mainly we handle the namespace change.
Ultimately we should handle "upgrading" the documents as well. The idea being that
we'd always treat all versions as the latest.
HHH-8108
for more discussion.Modifier and Type | Class and Description |
---|---|
static class |
JpaOrmXmlEventReader.BadVersionException |
Constructor and Description |
---|
JpaOrmXmlEventReader(XMLEventReader reader) |
JpaOrmXmlEventReader(XMLEventReader reader,
XMLEventFactory xmlEventFactory) |
Modifier and Type | Method and Description |
---|---|
XMLEvent |
nextEvent() |
XMLEvent |
peek() |
close, getElementText, getParent, getProperty, hasNext, next, nextTag, remove, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public JpaOrmXmlEventReader(XMLEventReader reader)
public JpaOrmXmlEventReader(XMLEventReader reader, XMLEventFactory xmlEventFactory)
public XMLEvent peek() throws XMLStreamException
peek
in interface XMLEventReader
peek
in class EventReaderDelegate
XMLStreamException
public XMLEvent nextEvent() throws XMLStreamException
nextEvent
in interface XMLEventReader
nextEvent
in class EventReaderDelegate
XMLStreamException
Copyright © 2020 JBoss by Red Hat. All rights reserved.