1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
private void parcoursREP () throws IOException {
String[] listeFichiers;
String path ;
File repertoire = new File("../../expo/files/" );
listeFichiers = repertoire.list();
System.out.println(listeFichiers.length);
for (int i=0; i<listeFichiers.length;i++)
{
// le fichier sera trouver ici.
System.out.println(listeFichiers[i]);
path=listeFichiers[i];
new Parameter().begin("../../expo/files/"+listeFichiers[i]);
}
}
public void begin (String path) throws IOException,FileNotFoundException
{
System.out.println(path);
Parameter parameter = new Parameter();
// generation de l exception se trouve ici
parameter.go(path);
} |
Partager