public class Jdk7FileCanonicalizer implements FileCanonicalizer {
public File canonicalize(File file) throws FileException {
try {
return file.toPath().toRealPath().toFile();
} catch (IOException e) {
throw new FileException(String.format("Could not canonicalize file %s.", file), e);
}
}