From 119912a4878aa9f394a7c008782a05f788810513 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 23 Apr 2024 20:35:07 +0200 Subject: [PATCH] builFiles images --- .../gla/project/idfm/IDFMNetworkExtractor.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractor.java b/src/main/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractor.java index c6dffae..d14fb82 100644 --- a/src/main/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractor.java +++ b/src/main/java/fr/u_paris/gla/project/idfm/IDFMNetworkExtractor.java @@ -82,6 +82,8 @@ public class IDFMNetworkExtractor { private static final String HOURS_FILE_NAME = "hours.csv"; + private static final String IMAGES_FILE_NAME = "./images.csv"; + // Magically chosen values /** * A number of stops on each line @@ -304,6 +306,15 @@ public class IDFMNetworkExtractor { LOGGER.log(Level.SEVERE, e, () -> MessageFormat.format("Could not write in file {0}", HOURS_FILE_NAME)); } + + CSVImageProvider providerimage = new CSVImageProvider(transports.values().iterator()); + try { + CSVTools.writeCSVToFile(IMAGES_FILE_NAME, Stream.iterate(providerimage.next(), + t -> providerimage.hasNext(), t -> providerimage.next())); + } catch (IOException e) { + LOGGER.log(Level.SEVERE, e, + () -> MessageFormat.format("Could not write in file {0}", IMAGES_FILE_NAME)); + } }