public void parse(InputSource input) throws IOException, SAXException {
  if (parsing) {
    throw new SAXException("Parser is already in use");
  }
  setupParser();
  parsing=true;
  try {
    parser.parse(input);
  }
  finally {
    parsing=false;
  }
  parsing=false;
}

public void parse ( InputSource input ) throws IOException , SAXException { if ( parsing ) { throw new SAXException ( "Parser is already in use" ) ; } setupParser ( ) ; parsing = true ; try { parser . parse ( input ) ; } finally { parsing = false ; } parsing = false ; }
parse an xml document .
