modif sur les datas csv

This commit is contained in:
yann 2021-01-31 21:55:28 +01:00
parent bafd74a3a6
commit 614d8b31ab
2 changed files with 6 additions and 7 deletions

View file

@ -10,7 +10,6 @@ import java.util.zip.ZipInputStream;
public class DataCsv {
protected String destination;
private ImportData imp;
/**
* Constructeur par defaut
@ -23,13 +22,13 @@ public class DataCsv {
}
/**
* Constructeur avec deux parametres
* Constructeur avec parametre
* @param s repertoire de destination
* @throws IOException
*/
public DataCsv(String s) throws IOException {
this.destination = s;
imp = new ImportData("https://www.fdj.fr/jeux-de-tirage/loto/statistiques", this.destination);
ImportData imp = new ImportData("https://www.fdj.fr/jeux-de-tirage/loto/statistiques", this.destination);
for (String name : imp.tabNameZip) {
name = this.destination.concat(name);

View file

@ -12,8 +12,7 @@ public class ImportData {
public ArrayList<String> tabNameZip;
/**
* Le constructeur de ImportData
* Initialise l'URL par défaut ainsi que le dossier de destination de téléchargement
* Constructeur par defaut
*/
ImportData(){
this.url = "https://www.fdj.fr/jeux-de-tirage/loto/statistiques";
@ -23,8 +22,9 @@ public class ImportData {
}
/**
* Le constructeur de ImportData
* @param url string contenant l URL dou recuperer les fichiers csv
* Constructeur avec parametres
* @param url contient l'URL dou recuperer les fichiers csv
* @param des respertoire de destination
*/
public ImportData(String url, String des){
this.url=url;