Lines Matching refs:uri
48 * @param uri the path to decode
51 public static String decode(String uri) {
52 StringBuffer translatedUri = new StringBuffer(uri.length());
53 byte[] encodedchars = new byte[uri.length() / 3];
55 int length = uri.length();
58 if (uri.charAt(i) == '%') {
61 while (i < length && uri.charAt(i) == '%') {
64 byte x = (byte)Integer.parseInt(uri.substring(i + 1, i + 3), 16);
67 throw new IllegalArgumentException("Illegal hex characters in pattern %" + uri.substring(i + 1, i + 3));
85 translatedUri.append(uri.charAt(i));