builFiles images

This commit is contained in:
Mylloon 2024-04-23 20:35:07 +02:00
parent fc9c67f235
commit 119912a487
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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));
}
}