public static XMLStreamReader createXmlStreamReader ( Reader reader , boolean namespaceAware ) throws JAXBException { XMLInputFactory xif = getXmlInputFactory ( namespaceAware ) ; XMLStreamReader xsr = null ; try { xsr = xif . createXMLStreamReader ( reader ) ; } catch ( XMLStreamException e ) { throw new JAXBException ( e ) ; } return xsr ; }
Creates an XMLStreamReader based on a Reader .