Lines Matching refs:path
43 * Returns URI to represent the given (absolute) path
45 private static URI toUri(String path, boolean isUnc, boolean addSlash) {
50 int slash = path.indexOf('\\', 2);
51 uriHost = path.substring(2, slash);
52 uriPath = path.substring(slash).replace('\\', '/');
66 uriPath = "/" + path.replace('\\', '/');
83 // octets so fallback to encoding the server name into the URI path
85 uriPath = "//" + path.replace('\\', '/');
98 static URI toUri(WindowsPath path) {
99 path = path.toAbsolutePath();
100 String s = path.toString();
107 addSlash = WindowsFileAttributes.get(path, true).isDirectory();
112 return toUri(s, path.isUnc(), addSlash);
130 String path = uri.getPath();
131 if (path.equals(""))
132 throw new IllegalArgumentException("URI path component is empty");
158 path = "\\\\" + host + path;
160 if ((path.length() > 2) && (path.charAt(2) == ':')) {
162 path = path.substring(1);
165 return WindowsPath.parse(fs, path);