title: SAXparser method's arguments
body: <p>I am using a method to use <code>SAXparser</code> which uses an extended version of the <code>defaulthandler</code>. as a result, when trying to use <code>parser</code> method with <code>inputstream</code> and the extended <code>defaulthandler</code> arguments, it gives an error saying that it can not find a suitable method for such arguments. in case of being have to use those arguments, how can I solve it?</p>
  
  <p>The method that extends <code>defaulthandler</code>:</p>
  
  <pre><code>            static private class newConfigHandler extends DefaultHandler   {
                ...
  
      @Override
      public void endElement(String namespaceURI,String localName, String rawName) throws SAXException {
    ....
      }
      @Override
      public void characters(char[] ch, int start, int length) throws SAXException {
          ....   
           }
                                                                   }
  </code></pre>
  
  <p>the error happens in third line of below code:</p>
  
  <pre><code>        sParser = SAXParserFactory.newInstance().newSAXParser()
          newHandler = new newConfigHandler();
          URL u;
          sParser.parse(u.openStream(),newHandler);
  </code></pre>