// Root files (root itself does not have to be mapped)
Iterator isoFit = isoRoot.getFiles().iterator();
Iterator rripFit = rripRoot.getFiles().iterator();
while (isoFit.hasNext()) {
ISO9660File isoFile = (ISO9660File) isoFit.next();
ISO9660File rripFile = (ISO9660File) rripFit.next();
fileMapper.put(isoFile, rripFile);
}
// Subdirectories:
// Since rripRoot and isoRoot are just a deep copy of the same
// root at this point, simultaneous iteration can be applied here
Iterator isoIt = isoRoot.unsortedIterator();
Iterator rripIt = rripRoot.unsortedIterator();
while (isoIt.hasNext()) {
ISO9660Directory isoDir = (ISO9660Directory) isoIt.next();
ISO9660Directory rripDir = (ISO9660Directory) rripIt.next();
directoryMapper.put(isoDir.getID(), rripDir);
isoFit = isoDir.getFiles().iterator();
rripFit = rripDir.getFiles().iterator();
while (isoFit.hasNext()) {
ISO9660File isoFile = (ISO9660File) isoFit.next();
ISO9660File rripFile = (ISO9660File) rripFit.next();
fileMapper.put(isoFile.getID(), rripFile);
}
}
}