private static void parse(Reader in,ContentHandler contentHandler) throws IOException, SAXException {
  XMLReader reader=new ExpatReader();
  reader.setContentHandler(contentHandler);
  reader.parse(new InputSource(in));
}

private static void parse ( Reader in , ContentHandler contentHandler ) throws IOException , SAXException { XMLReader reader = new ExpatReader ( ) ; reader . setContentHandler ( contentHandler ) ; reader . parse ( new InputSource ( in ) ) ; }
parses xml from the given reader and fires events on the given sax handler .
