protected boolean excludeFile(String file){
  if (excluded == null)   return false;
  Iterator<String> iter=excluded.iterator();
  while (iter.hasNext())   if (file.endsWith(iter.next()))   return true;
  return false;
}

protected boolean excludeFile ( String file ) { if ( excluded == null ) return false ; Iterator < String > iter = excluded . iterator ( ) ; while ( iter . hasNext ( ) ) if ( file . endsWith ( iter . next ( ) ) ) return true ; return false ; }
check if a file is excluded or not
