Here you can find the source of getCanonicalFileEL(File file)
Parameter | Description |
---|---|
file | file to get canoncial form from it |
Parameter | Description |
---|---|
SecurityException | If a required system property value cannot be accessed. |
public static File getCanonicalFileEL(File file)
//package com.java2s; //License from project: LGPL import java.io.File; import java.io.IOException; public class Main { /**/* www .j av a 2 s . c o m*/ * Returns the canonical form of this abstract pathname. * @param file file to get canoncial form from it * * @return The canonical pathname string denoting the same file or * directory as this abstract pathname * * @throws SecurityException * If a required system property value cannot be accessed. */ public static File getCanonicalFileEL(File file) { try { return file.getCanonicalFile(); } catch (IOException e) { return file; } } }