0

I am using a method to use SAXparser which uses an extended version of the defaulthandler. as a result, when trying to use parser method with inputstream and the extended defaulthandler 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?

The method that extends defaulthandler:

            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 {
        ....   
         }
                                                                 }

the error happens in third line of below code:

        sParser = SAXParserFactory.newInstance().newSAXParser()
        newHandler = new newConfigHandler();
        URL u;
        sParser.parse(u.openStream(),newHandler);
lonesome
  • 2,503
  • 6
  • 35
  • 61

0 Answers0