builFiles images
This commit is contained in:
parent
fc9c67f235
commit
119912a487
1 changed files with 11 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue