Java Utililty Methods Path Is Absolute

List of utility methods to do Path Is Absolute

Description

The list of methods to do Path Is Absolute are organized into topic(s).

Method

booleanisAbsolutePath(String path)
is Absolute Path
if (path == null)
    return false;
return (path.startsWith("/") || path.startsWith("\\") || path.charAt(1) == ':');
booleanisAbsolutePath(String path)
Checks wether the specified path expression is an absolute path.
return path != null && (path.startsWith("/") || path.startsWith(INSTANCE_FUNCTION));
booleanisAbsolutePath(String path)
Determine whether a file system path is absolute or relative.
return ((path != null) && (!path.isEmpty()) && ((path.charAt(0) == '/') || (path.charAt(0) == '\\')));
booleanisAbsolutePath(String path)
is Absolute Path
String testPath = replaceFileSeparator(path);
if (testPath.startsWith("/") || testPath.indexOf(":") != -1) {
    return true;
} else {
    return false;
booleanisAbsolutePath(String path)
Checks if the specified path is absolute.
String osName;
if (path == null)
    return false;
if (path.length() == 0)
    return false;
osName = System.getProperty("os.name").toLowerCase();
if (osName.startsWith("win")) {
    if (path.length() < 2)
...
booleanIsAbsolutePath(String strPath)
Is Absolute Path
if (strPath == null)
    throw new IllegalArgumentException("strPath");
if (strPath.length() == 0)
    return false;
if (IsUncPath(strPath))
    return true;
return strPath.startsWith("/") || strPath.startsWith("\\") || (strPath.charAt(1) == ':');