Java Is Relative Path isRelative(File target_)

Here you can find the source of isRelative(File target_)

Description

is Relative

License

Open Source License

Declaration

public static boolean isRelative(File target_) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {
    public static boolean isRelative(File target_) {
        if (target_ == null)
            return false;
        String path = target_.getPath();
        if (path == null)
            return false;
        return path.startsWith(".");
    }/*from   w  w w  .jav  a  2 s . c o  m*/
}

Related

  1. isRelative(final String path)
  2. isRelative(String path)
  3. isRelativePath(final String filePath)
  4. isRelativePath(String candidatePath)