private void parse(String fileName,@WillClose InputStream stream) throws IOException, SAXException {
  try {
    SAXBugCollectionHandler handler=new SAXBugCollectionHandler(this,new File(fileName));
    XMLReader xr=XMLReaderFactory.createXMLReader();
    xr.setContentHandler(handler);
    xr.setErrorHandler(handler);
    Reader reader=Util.getReader(stream);
    xr.parse(new InputSource(reader));
  }
  finally {
    Util.closeSilently(stream);
  }
}

private void parse ( String fileName , @ WillClose InputStream stream ) throws IOException , SAXException { try { SAXBugCollectionHandler handler = new SAXBugCollectionHandler ( this , new File ( fileName ) ) ; XMLReader xr = XMLReaderFactory . createXMLReader ( ) ; xr . setContentHandler ( handler ) ; xr . setErrorHandler ( handler ) ; Reader reader = Util . getReader ( stream ) ; xr . parse ( new InputSource ( reader ) ) ; } finally { Util . closeSilently ( stream ) ; } }
parse and load the given filter file .
