Java Canonical Path Create getCanonicalLocationFilePath(String location, String file)

Here you can find the source of getCanonicalLocationFilePath(String location, String file)

Description

get Canonical Location File Path

License

Apache License

Declaration

static String getCanonicalLocationFilePath(String location, String file) throws IOException 

Method Source Code


//package com.java2s;
/*//from   w  ww.  j a v a  2  s .com
 * Copyright ? 2012 Eirik Bjornset.
 * 
 * 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 {
    static String getCanonicalLocationFilePath(String location, String file) throws IOException {
        return new File(location, file).getCanonicalPath();
    }
}

Related

  1. getCanonicalFileEL(File file)
  2. getCanonicalFileName(String filename)
  3. getCanonicalFileOrNull(@Nullable final File aFile)
  4. getCanonicalFiles2List(List path, String[] allowedExtension)
  5. getCanonicalFileURL(File file)
  6. getCanonicalOrAbsolutePath(File file)
  7. getCanonicalPath(File file)
  8. getCanonicalPath(File inFile, boolean inThrowRuntimeException)
  9. getCanonicalPath(final File file)