List of utility methods to do Path Is Absolute
boolean | isAbsolutePath(String path) is Absolute Path if (path == null) return false; return (path.startsWith("/") || path.startsWith("\\") || path.charAt(1) == ':'); |
boolean | isAbsolutePath(String path) Checks wether the specified path expression is an absolute path. return path != null && (path.startsWith("/") || path.startsWith(INSTANCE_FUNCTION)); |
boolean | isAbsolutePath(String path) Determine whether a file system path is absolute or relative. return ((path != null) && (!path.isEmpty()) && ((path.charAt(0) == '/') || (path.charAt(0) == '\\'))); |
boolean | isAbsolutePath(String path) is Absolute Path String testPath = replaceFileSeparator(path); if (testPath.startsWith("/") || testPath.indexOf(":") != -1) { return true; } else { return false; |
boolean | isAbsolutePath(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) ... |
boolean | IsAbsolutePath(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) == ':'); |