Java Path File Check nio isAbsolute(String path)

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

Description

is Absolute

License

Apache License

Declaration


public static boolean isAbsolute(String path) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.nio.file.Path;
import java.nio.file.Paths;

public class Main {
    /**/*from   w  w  w  .j  ava 2s.  com*/
     * @see Path#isAbsolute()
     */

    public static boolean isAbsolute(String path) {
        return toPath(path).isAbsolute();
    }

    /**
     * @see Paths#get(String, String...)
     */

    public static Path toPath(String path) {
        return Paths.get(path);
    }
}

Related

  1. isAbsolutePath(String path)
  2. isAsciiText(Path p)
  3. isBallerinaProject(Path path)
  4. isBinary(Path file)