Java Is Relative Path isRelativePath(String path)

Here you can find the source of isRelativePath(String path)

Description

is Relative Path

License

Open Source License

Declaration

public static boolean isRelativePath(String path) 

Method Source Code


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

import java.io.File;

public class Main {
    public static boolean isRelativePath(String path) {
        if (path == null) {
            return false;
        } else {/*from  w  w  w  . j a v  a2  s. c  o m*/
            return !new File(path).isAbsolute();
        }
    }
}

Related

  1. isRelativePath(String candidatePath)
  2. isRelativePath(String fileName)
  3. isRelativePath(String path)
  4. isRelativePath(String path)
  5. isRelativePath(String path)