public void parse(Reader reader) throws IOException, SAXException {
  try {
    _xmlReader.setInput(reader);
    parseAll();
  }
 catch (  XMLStreamException e) {
    if (e.getNestedException() instanceof IOException)     throw (IOException)e.getNestedException();
    throw new SAXException(e.getMessage());
  }
 finally {
    _xmlReader.reset();
  }
}

public void parse ( Reader reader ) throws IOException , SAXException { try { _xmlReader . setInput ( reader ) ; parseAll ( ) ; } catch ( XMLStreamException e ) { if ( e . getNestedException ( ) instanceof IOException ) throw ( IOException ) e . getNestedException ( ) ; throw new SAXException ( e . getMessage ( ) ) ; } finally { _xmlReader . reset ( ) ; } }
parses an xml document using the specified reader .
