Java Canonical Path Create getCanonicalFile(File f)

Here you can find the source of getCanonicalFile(File f)

Description

get Canonical File

License

Open Source License

Declaration

public static File getCanonicalFile(File f) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.*;

public class Main {
    public static File getCanonicalFile(File f) {
        try {/*  w w  w  . j  a  v  a 2s .c om*/
            return f.getCanonicalFile();
        } catch (IOException e) {
            return f.getAbsoluteFile();
        }
    }
}

Related

  1. getCanonicalCharset(String charset)
  2. getCanonicalCharsetQuiet(String charset)
  3. getCanonicalDirectory(final String rawDir)
  4. getCanonicalDirectory(String path, String errPrefix)
  5. getCanonicalFile(@Nullable final File aFile)
  6. getCanonicalFile(File file)
  7. getCanonicalFile(File file)
  8. getCanonicalFile(File file)
  9. getCanonicalFile(File file)