il codice (più leggibile ):

codice:
for(int j=0;j<fls.length;j++){
File file=fls[j];
//renameMalformedFile(file);//in questa posizione funziona

try { 
      SAXBuilder builder = new SAXBuilder();
      Document document =(Document) builder.build(file);
      Description= (document.getRootElement().getChild("DESCRIZIONE").getValue());
      Title= (document.getRootElement().getChild("TITOLO").getValue());
      Duration= (document.getRootElement().getChild("DURATA").getValue());
}catch (JDOMException e) {
       e.printStackTrace();
       renameMalformedFile(file);//metodo invocato ma k non ha effetto(rinominare file)
  }catch (IOException e) {
      e.printStackTrace();
    }

........
}