Lines Matching refs:path

55         // path component of a URI.
57 // These characters are reserved in the path segment as described in
88 * Constructs an encoded version of the specified path string suitable
91 * A path separator is replaced by a forward slash. The string is UTF8
93 * 0x7F or those defined in RFC2396 as reserved or excluded in the path
96 public static String encodePath(String path) {
97 return encodePath(path, true);
100 * flag indicates whether path uses platform dependent
101 * File.separatorChar or not. True indicates path uses platform
104 public static String encodePath(String path, boolean flag) {
105 char[] retCC = new char[path.length() * 2 + 16];
107 char[] pathCC = path.toCharArray();
109 int n = path.length();
264 String path = file.getAbsolutePath();
265 path = ParseUtil.encodePath(path);
266 if (!path.startsWith("/")) {
267 path = "/" + path;
269 if (!path.endsWith("/") && file.isDirectory()) {
270 path = path + "/";
272 return new URL("file", "", path);
278 String path = url.getPath();
281 if (path != null && !(path.startsWith("/")))
282 path = "/" + path;
293 uri = createURI(protocol, auth, path, query, ref);
312 String path,
318 path, query, fragment);
319 checkPath(s, scheme, path);
329 String path,
340 path, query);
351 String path,
377 if (path != null)
378 sb.append(quote(path, L_PATH, H_PATH));
527 // If a scheme is given then the path, if given, must be absolute
529 private static void checkPath(String s, String scheme, String path)
533 if ((path != null)
534 && ((path.length() > 0) && (path.charAt(0) != '/')))
536 "Relative path in absolute URI");
657 // All valid path characters