1 /* 2 * Copyright (c) 1998, 2007, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package sun.net.www; 27 28 29 @SuppressWarnings({"unchecked", "deprecation", "all"}) 30 public class ParseUtil { 31 ParseUtil()32 public ParseUtil() { 33 throw new RuntimeException("Stub!"); 34 } 35 encodePath(java.lang.String path)36 public static java.lang.String encodePath(java.lang.String path) { 37 throw new RuntimeException("Stub!"); 38 } 39 40 @android.compat.annotation.UnsupportedAppUsage encodePath(java.lang.String path, boolean flag)41 public static java.lang.String encodePath(java.lang.String path, boolean flag) { 42 throw new RuntimeException("Stub!"); 43 } 44 escape(char[] cc, char c, int index)45 private static int escape(char[] cc, char c, int index) { 46 throw new RuntimeException("Stub!"); 47 } 48 unescape(java.lang.String s, int i)49 private static byte unescape(java.lang.String s, int i) { 50 throw new RuntimeException("Stub!"); 51 } 52 53 @android.compat.annotation.UnsupportedAppUsage decode(java.lang.String s)54 public static java.lang.String decode(java.lang.String s) { 55 throw new RuntimeException("Stub!"); 56 } 57 canonizeString(java.lang.String file)58 public java.lang.String canonizeString(java.lang.String file) { 59 throw new RuntimeException("Stub!"); 60 } 61 62 @android.compat.annotation.UnsupportedAppUsage fileToEncodedURL(java.io.File file)63 public static java.net.URL fileToEncodedURL(java.io.File file) 64 throws java.net.MalformedURLException { 65 throw new RuntimeException("Stub!"); 66 } 67 toURI(java.net.URL url)68 public static java.net.URI toURI(java.net.URL url) { 69 throw new RuntimeException("Stub!"); 70 } 71 createURI( java.lang.String scheme, java.lang.String authority, java.lang.String path, java.lang.String query, java.lang.String fragment)72 private static java.net.URI createURI( 73 java.lang.String scheme, 74 java.lang.String authority, 75 java.lang.String path, 76 java.lang.String query, 77 java.lang.String fragment) 78 throws java.net.URISyntaxException { 79 throw new RuntimeException("Stub!"); 80 } 81 toString( java.lang.String scheme, java.lang.String opaquePart, java.lang.String authority, java.lang.String userInfo, java.lang.String host, int port, java.lang.String path, java.lang.String query, java.lang.String fragment)82 private static java.lang.String toString( 83 java.lang.String scheme, 84 java.lang.String opaquePart, 85 java.lang.String authority, 86 java.lang.String userInfo, 87 java.lang.String host, 88 int port, 89 java.lang.String path, 90 java.lang.String query, 91 java.lang.String fragment) { 92 throw new RuntimeException("Stub!"); 93 } 94 appendSchemeSpecificPart( java.lang.StringBuffer sb, java.lang.String opaquePart, java.lang.String authority, java.lang.String userInfo, java.lang.String host, int port, java.lang.String path, java.lang.String query)95 private static void appendSchemeSpecificPart( 96 java.lang.StringBuffer sb, 97 java.lang.String opaquePart, 98 java.lang.String authority, 99 java.lang.String userInfo, 100 java.lang.String host, 101 int port, 102 java.lang.String path, 103 java.lang.String query) { 104 throw new RuntimeException("Stub!"); 105 } 106 appendAuthority( java.lang.StringBuffer sb, java.lang.String authority, java.lang.String userInfo, java.lang.String host, int port)107 private static void appendAuthority( 108 java.lang.StringBuffer sb, 109 java.lang.String authority, 110 java.lang.String userInfo, 111 java.lang.String host, 112 int port) { 113 throw new RuntimeException("Stub!"); 114 } 115 appendFragment(java.lang.StringBuffer sb, java.lang.String fragment)116 private static void appendFragment(java.lang.StringBuffer sb, java.lang.String fragment) { 117 throw new RuntimeException("Stub!"); 118 } 119 quote(java.lang.String s, long lowMask, long highMask)120 private static java.lang.String quote(java.lang.String s, long lowMask, long highMask) { 121 throw new RuntimeException("Stub!"); 122 } 123 isEscaped(java.lang.String s, int pos)124 private static boolean isEscaped(java.lang.String s, int pos) { 125 throw new RuntimeException("Stub!"); 126 } 127 appendEncoded(java.lang.StringBuffer sb, char c)128 private static void appendEncoded(java.lang.StringBuffer sb, char c) { 129 throw new RuntimeException("Stub!"); 130 } 131 appendEscape(java.lang.StringBuffer sb, byte b)132 private static void appendEscape(java.lang.StringBuffer sb, byte b) { 133 throw new RuntimeException("Stub!"); 134 } 135 match(char c, long lowMask, long highMask)136 private static boolean match(char c, long lowMask, long highMask) { 137 throw new RuntimeException("Stub!"); 138 } 139 checkPath( java.lang.String s, java.lang.String scheme, java.lang.String path)140 private static void checkPath( 141 java.lang.String s, java.lang.String scheme, java.lang.String path) 142 throws java.net.URISyntaxException { 143 throw new RuntimeException("Stub!"); 144 } 145 lowMask(char first, char last)146 private static long lowMask(char first, char last) { 147 throw new RuntimeException("Stub!"); 148 } 149 lowMask(java.lang.String chars)150 private static long lowMask(java.lang.String chars) { 151 throw new RuntimeException("Stub!"); 152 } 153 highMask(char first, char last)154 private static long highMask(char first, char last) { 155 throw new RuntimeException("Stub!"); 156 } 157 highMask(java.lang.String chars)158 private static long highMask(java.lang.String chars) { 159 throw new RuntimeException("Stub!"); 160 } 161 162 private static final long H_ALPHA; 163 164 static { 165 H_ALPHA = 0; 166 } 167 168 private static final long H_ALPHANUM; 169 170 static { 171 H_ALPHANUM = 0; 172 } 173 174 private static final long H_DASH; 175 176 static { 177 H_DASH = 0; 178 } 179 180 private static final long H_DIGIT = 0L; // 0x0L 181 182 private static final long H_ESCAPED = 0L; // 0x0L 183 184 private static final long H_HEX; 185 186 static { 187 H_HEX = 0; 188 } 189 190 private static final long H_LOWALPHA; 191 192 static { 193 H_LOWALPHA = 0; 194 } 195 196 private static final long H_MARK; 197 198 static { 199 H_MARK = 0; 200 } 201 202 private static final long H_PATH; 203 204 static { 205 H_PATH = 0; 206 } 207 208 private static final long H_PCHAR; 209 210 static { 211 H_PCHAR = 0; 212 } 213 214 private static final long H_REG_NAME; 215 216 static { 217 H_REG_NAME = 0; 218 } 219 220 private static final long H_RESERVED; 221 222 static { 223 H_RESERVED = 0; 224 } 225 226 private static final long H_SERVER; 227 228 static { 229 H_SERVER = 0; 230 } 231 232 private static final long H_UNRESERVED; 233 234 static { 235 H_UNRESERVED = 0; 236 } 237 238 private static final long H_UPALPHA; 239 240 static { 241 H_UPALPHA = 0; 242 } 243 244 private static final long H_URIC; 245 246 static { 247 H_URIC = 0; 248 } 249 250 private static final long H_USERINFO; 251 252 static { 253 H_USERINFO = 0; 254 } 255 256 private static final long L_ALPHA = 0L; // 0x0L 257 258 private static final long L_ALPHANUM; 259 260 static { 261 L_ALPHANUM = 0; 262 } 263 264 private static final long L_DASH; 265 266 static { 267 L_DASH = 0; 268 } 269 270 private static final long L_DIGIT; 271 272 static { 273 L_DIGIT = 0; 274 } 275 276 private static final long L_ESCAPED = 1L; // 0x1L 277 278 private static final long L_HEX; 279 280 static { 281 L_HEX = 0; 282 } 283 284 private static final long L_LOWALPHA = 0L; // 0x0L 285 286 private static final long L_MARK; 287 288 static { 289 L_MARK = 0; 290 } 291 292 private static final long L_PATH; 293 294 static { 295 L_PATH = 0; 296 } 297 298 private static final long L_PCHAR; 299 300 static { 301 L_PCHAR = 0; 302 } 303 304 private static final long L_REG_NAME; 305 306 static { 307 L_REG_NAME = 0; 308 } 309 310 private static final long L_RESERVED; 311 312 static { 313 L_RESERVED = 0; 314 } 315 316 private static final long L_SERVER; 317 318 static { 319 L_SERVER = 0; 320 } 321 322 private static final long L_UNRESERVED; 323 324 static { 325 L_UNRESERVED = 0; 326 } 327 328 private static final long L_UPALPHA = 0L; // 0x0L 329 330 private static final long L_URIC; 331 332 static { 333 L_URIC = 0; 334 } 335 336 private static final long L_USERINFO; 337 338 static { 339 L_USERINFO = 0; 340 } 341 342 static java.util.BitSet encodedInPath; 343 344 private static final char[] hexDigits; 345 346 static { 347 hexDigits = new char[0]; 348 } 349 } 350