Constructs a new instance of the StaxEventXmlReader that reads from the given
XMLEventReader. The supplied event reader must be in XMLStreamConstants.START_DOCUMENT
or XMLStreamConstants.START_ELEMENT state.
Parameters: reader - the XMLEventReader to read from throws: IllegalStateException - if the reader is not at the start of a document or element