Java Canonical Path Create getCanonicalFile(File file)

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

Description

get Canonical File

License

Apache License

Declaration

public static File getCanonicalFile(File file) throws IOException 

Method Source Code


//package com.java2s;
/*// w  w w  . j  a v a  2s  .  co  m
 * Copyright 2007-2009 Jiemamy Project and the Others.
 *
 * This file is part of Jiemamy.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

import java.io.File;

import java.io.IOException;

public class Main {

    public static File getCanonicalFile(File file) throws IOException {
        return file.getCanonicalFile();
    }
}

Related

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