91 |
} |
} |
92 |
|
|
93 |
/** |
/** |
94 |
* Get the URL to a resource. |
* Find the URL to a resource. Called by ClassLoader.getResource(). |
95 |
* |
* |
96 |
* @param name the name of the resource |
* @param name the name of the resource |
97 |
* @return the URL to the resource |
* @return the URL to the resource |
98 |
*/ |
*/ |
99 |
public URL getResource(String name) |
protected URL findResource(String name) |
100 |
{ |
{ |
101 |
return systemGetResource(name); |
return systemFindResource(name); |
102 |
} |
} |
103 |
|
|
104 |
/** |
/** |
107 |
* @param name the name of the resource |
* @param name the name of the resource |
108 |
* @return the URL to the resource |
* @return the URL to the resource |
109 |
*/ |
*/ |
110 |
public static URL systemGetResource(String name) |
private static URL systemFindResource(String name) |
111 |
{ |
{ |
112 |
if (name.charAt(0) == '/') |
if (name.charAt(0) == '/') |
113 |
name = name.substring(1); |
name = name.substring(1); |
253 |
|
|
254 |
return result; |
return result; |
255 |
|
|
256 |
} //End of systemGetResource |
} //End of systemFindResource |
257 |
|
|
258 |
} |
} |