public static XMLStreamReader createXMLStreamReader(InputStream in) {
        XMLInputFactory factory = getXMLInputFactory();
        try {
            return factory.createXMLStreamReader(in);
        } catch (XMLStreamException e) {
            throw new RuntimeException("Couldn't parse stream.", e);
        } finally {
            returnXMLInputFactory(factory);
        }
    }
public static XMLStreamReader createXMLStreamReader ( InputStream in ) { XMLInputFactory factory = getXMLInputFactory ( ) ; try { return factory . createXMLStreamReader ( in ) ; } catch ( XMLStreamException e ) { throw new RuntimeException ( "Couldn't parse stream." , e ) ; } finally { returnXMLInputFactory ( factory ) ; } }
@param in