use of uk.me.parabola.imgfmt.sys.FileLink in project mkgmap by openstreetmap.
the class FileCopier method addFile.
private void addFile(FileSystem outfs, FileInfo info) {
String filename = info.getFilename();
FileCopier fc = new FileCopier(filename);
try {
ImgChannel chan = outfs.create(createImgFilename(filename));
((FileLink) chan).link(info.subFiles().get(0), fc.file(chan));
} catch (FileExistsException e) {
log.warn("Counld not copy " + filename, e);
}
}
use of uk.me.parabola.imgfmt.sys.FileLink in project mkgmap by openstreetmap.
the class FileCopier method addImg.
private void addImg(FileSystem outfs, FileInfo info) {
FileCopier fc = new FileCopier(info.getFilename());
List<SubFileInfo> subFiles = info.subFiles();
for (SubFileInfo sf : subFiles) {
try {
ImgChannel chan = outfs.create(sf.getName());
Closeable sync = fc.add(sf.getName(), chan);
((FileLink) chan).link(sf, sync);
} catch (FileExistsException e) {
log.warn("Could not copy " + sf.getName(), e);
}
}
}
Aggregations