Tidy up the implementation of the StAXStreamReader to conform to the other outputters in JDOM