Constructs a new instance of the StaxStreamXmlReader that reads from the given
XMLStreamReader. The supplied stream 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