Java Path Is Absolute isAbsolutePath(String path)

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

Description

is Absolute Path

License

Apache License

Declaration

public static boolean isAbsolutePath(String path) 

Method Source Code

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

public class Main {
    public static final String SLASH = "/";

    public static boolean isAbsolutePath(String path) {
        if (path == null || path.trim().length() == 0) {
            throw new NullPointerException("Path can't be null or empty.");
        }//from  www.  j a v  a2  s  .  c o m
        return path.startsWith(SLASH);
    }
}

Related

  1. isAbsolute(String path)
  2. isAbsolute(String path)
  3. isAbsolutePath(String filename)
  4. isAbsolutePath(String path)
  5. isAbsolutePath(String path)
  6. isAbsolutePath(String path)
  7. isAbsolutePath(String path)
  8. isAbsolutePath(String path)
  9. isAbsolutePath(String path)