blob: 0744c282c2d519e45bc01405463725adde89ddfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* */ package org.eclipse.jdt.internal.jarinjarloader;
/* */
/* */ import java.io.IOException;
/* */ import java.net.URL;
/* */ import java.net.URLConnection;
/* */ import java.net.URLStreamHandler;
/* */
/* */ public class RsrcURLStreamHandler extends URLStreamHandler
/* */ {
/* */ private ClassLoader classLoader;
/* */
/* */ public RsrcURLStreamHandler(ClassLoader classLoader)
/* */ {
/* 33 */ this.classLoader = classLoader;
/* */ }
/* */
/* */ protected URLConnection openConnection(URL u) throws IOException {
/* 37 */ return new RsrcURLConnection(u, this.classLoader);
/* */ }
/* */
/* */ protected void parseURL(URL url, String spec, int start, int limit)
/* */ {
/* */ String file;
/* */ String file;
/* 42 */ if (spec.startsWith("rsrc:")) {
/* 43 */ file = spec.substring(5);
/* */ }
/* */ else
/* */ {
/* */ String file;
/* 44 */ if (url.getFile().equals("./")) {
/* 45 */ file = spec;
/* */ }
/* */ else
/* */ {
/* */ String file;
/* 46 */ if (url.getFile().endsWith("/"))
/* 47 */ file = url.getFile() + spec;
/* */ else
/* 49 */ file = spec;
/* */ }
/* */ }
/* 50 */ setURL(url, "rsrc", "", -1, null, null, file, null, null);
/* */ }
/* */ }
/* Location: Modulus.jar
* Qualified Name: org.eclipse.jdt.internal.jarinjarloader.RsrcURLStreamHandler
* JD-Core Version: 0.6.2
*/
|