| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<!--NewPage--> |
| 3 |
<HTML> |
| 4 |
<HEAD> |
| 5 |
<!-- Generated by javadoc (build 1.4.2_08) on Sat Apr 22 18:57:23 PDT 2006 --> |
| 6 |
<TITLE> |
| 7 |
ClassUtils (Axis API) |
| 8 |
</TITLE> |
| 9 |
|
| 10 |
<META NAME="keywords" CONTENT="org.apache.axis.utils.ClassUtils class"> |
| 11 |
|
| 12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| 13 |
|
| 14 |
<SCRIPT type="text/javascript"> |
| 15 |
function windowTitle() |
| 16 |
{ |
| 17 |
parent.document.title="ClassUtils (Axis API)"; |
| 18 |
} |
| 19 |
</SCRIPT> |
| 20 |
|
| 21 |
</HEAD> |
| 22 |
|
| 23 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
| 24 |
|
| 25 |
|
| 26 |
<!-- ========= START OF TOP NAVBAR ======= --> |
| 27 |
<A NAME="navbar_top"><!-- --></A> |
| 28 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| 29 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 30 |
<TR> |
| 31 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 32 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
| 33 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 34 |
<TR ALIGN="center" VALIGN="top"> |
| 35 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 36 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 37 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 43 |
</TR> |
| 44 |
</TABLE> |
| 45 |
</TD> |
| 46 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 47 |
</EM> |
| 48 |
</TD> |
| 49 |
</TR> |
| 50 |
|
| 51 |
<TR> |
| 52 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 53 |
<A HREF="../../../../org/apache/axis/utils/ClasspathUtils.html" title="class in org.apache.axis.utils"><B>PREV CLASS</B></A> |
| 54 |
<A HREF="../../../../org/apache/axis/utils/CLOption.html" title="class in org.apache.axis.utils"><B>NEXT CLASS</B></A></FONT></TD> |
| 55 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 56 |
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> |
| 57 |
<A HREF="ClassUtils.html" target="_top"><B>NO FRAMES</B></A> |
| 58 |
<SCRIPT type="text/javascript"> |
| 59 |
<!-- |
| 60 |
if(window==top) { |
| 61 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 62 |
} |
| 63 |
//--> |
| 64 |
</SCRIPT> |
| 65 |
<NOSCRIPT> |
| 66 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 67 |
</NOSCRIPT> |
| 68 |
|
| 69 |
</FONT></TD> |
| 70 |
</TR> |
| 71 |
<TR> |
| 72 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 73 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 74 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 75 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 76 |
</TR> |
| 77 |
</TABLE> |
| 78 |
<A NAME="skip-navbar_top"></A> |
| 79 |
<!-- ========= END OF TOP NAVBAR ========= --> |
| 80 |
|
| 81 |
<HR> |
| 82 |
<!-- ======== START OF CLASS DATA ======== --> |
| 83 |
<H2> |
| 84 |
<FONT SIZE="-1"> |
| 85 |
org.apache.axis.utils</FONT> |
| 86 |
<BR> |
| 87 |
Class ClassUtils</H2> |
| 88 |
<PRE> |
| 89 |
java.lang.Object |
| 90 |
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.axis.utils.ClassUtils</B> |
| 91 |
</PRE> |
| 92 |
<HR> |
| 93 |
<DL> |
| 94 |
<DT>public final class <B>ClassUtils</B><DT>extends java.lang.Object</DL> |
| 95 |
|
| 96 |
<P> |
| 97 |
Utility methods for Class Loading. |
| 98 |
<P> |
| 99 |
|
| 100 |
<P> |
| 101 |
<DL> |
| 102 |
<DT><B>Author:</B></DT> |
| 103 |
<DD>Davanum Srinvas ([email protected]), Matthew Pocock ([email protected])</DD> |
| 104 |
</DL> |
| 105 |
<HR> |
| 106 |
|
| 107 |
<P> |
| 108 |
<!-- ======== NESTED CLASS SUMMARY ======== --> |
| 109 |
|
| 110 |
|
| 111 |
<!-- =========== FIELD SUMMARY =========== --> |
| 112 |
|
| 113 |
|
| 114 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| 115 |
|
| 116 |
<A NAME="constructor_summary"><!-- --></A> |
| 117 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 118 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 119 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 120 |
<B>Constructor Summary</B></FONT></TD> |
| 121 |
</TR> |
| 122 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 123 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#ClassUtils()">ClassUtils</A></B>()</CODE> |
| 124 |
|
| 125 |
<BR> |
| 126 |
</TD> |
| 127 |
</TR> |
| 128 |
</TABLE> |
| 129 |
|
| 130 |
<!-- ========== METHOD SUMMARY =========== --> |
| 131 |
|
| 132 |
<A NAME="method_summary"><!-- --></A> |
| 133 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 134 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 135 |
<TD COLSPAN=2><FONT SIZE="+2"> |
| 136 |
<B>Method Summary</B></FONT></TD> |
| 137 |
</TR> |
| 138 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 139 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 140 |
<CODE>static java.lang.ClassLoader</CODE></FONT></TD> |
| 141 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#createClassLoader(java.lang.String, java.lang.ClassLoader)">createClassLoader</A></B>(java.lang.String classpath, |
| 142 |
java.lang.ClassLoader parent)</CODE> |
| 143 |
|
| 144 |
<BR> |
| 145 |
Creates a new ClassLoader from a classpath specification and a parent |
| 146 |
class loader.</TD> |
| 147 |
</TR> |
| 148 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 149 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 150 |
<CODE>static java.lang.Class</CODE></FONT></TD> |
| 151 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#forName(java.lang.String)">forName</A></B>(java.lang.String className)</CODE> |
| 152 |
|
| 153 |
<BR> |
| 154 |
Use this method instead of Class.forName</TD> |
| 155 |
</TR> |
| 156 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 157 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 158 |
<CODE>static java.lang.Class</CODE></FONT></TD> |
| 159 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#forName(java.lang.String, boolean, java.lang.ClassLoader)">forName</A></B>(java.lang.String _className, |
| 160 |
boolean init, |
| 161 |
java.lang.ClassLoader _loader)</CODE> |
| 162 |
|
| 163 |
<BR> |
| 164 |
Use this method instead of Class.forName (String className, boolean init, ClassLoader loader)</TD> |
| 165 |
</TR> |
| 166 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 167 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 168 |
<CODE>static java.lang.ClassLoader</CODE></FONT></TD> |
| 169 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#getClassLoader(java.lang.String)">getClassLoader</A></B>(java.lang.String className)</CODE> |
| 170 |
|
| 171 |
<BR> |
| 172 |
Obtain the ClassLoader (if any) associated with the given |
| 173 |
className.</TD> |
| 174 |
</TR> |
| 175 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 176 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 177 |
<CODE>static java.lang.ClassLoader</CODE></FONT></TD> |
| 178 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#getDefaultClassLoader()">getDefaultClassLoader</A></B>()</CODE> |
| 179 |
|
| 180 |
<BR> |
| 181 |
</TD> |
| 182 |
</TR> |
| 183 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 184 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 185 |
<CODE>static java.io.InputStream</CODE></FONT></TD> |
| 186 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#getResourceAsStream(java.lang.Class, java.lang.String)">getResourceAsStream</A></B>(java.lang.Class clazz, |
| 187 |
java.lang.String resource)</CODE> |
| 188 |
|
| 189 |
<BR> |
| 190 |
Get an input stream from a named resource.</TD> |
| 191 |
</TR> |
| 192 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 193 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 194 |
<CODE>static java.io.InputStream</CODE></FONT></TD> |
| 195 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#getResourceAsStream(java.lang.Class, java.lang.String, boolean)">getResourceAsStream</A></B>(java.lang.Class clazz, |
| 196 |
java.lang.String resource, |
| 197 |
boolean checkThreadContextFirst)</CODE> |
| 198 |
|
| 199 |
<BR> |
| 200 |
Get an input stream from a named resource.</TD> |
| 201 |
</TR> |
| 202 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 203 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 204 |
<CODE>static void</CODE></FONT></TD> |
| 205 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#removeClassLoader(java.lang.String)">removeClassLoader</A></B>(java.lang.String className)</CODE> |
| 206 |
|
| 207 |
<BR> |
| 208 |
Deregister the ClassLoader for a given className.</TD> |
| 209 |
</TR> |
| 210 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 211 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 212 |
<CODE>static void</CODE></FONT></TD> |
| 213 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#setClassLoader(java.lang.String, java.lang.ClassLoader)">setClassLoader</A></B>(java.lang.String className, |
| 214 |
java.lang.ClassLoader loader)</CODE> |
| 215 |
|
| 216 |
<BR> |
| 217 |
Set the ClassLoader associated with the given className.</TD> |
| 218 |
</TR> |
| 219 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 220 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| 221 |
<CODE>static void</CODE></FONT></TD> |
| 222 |
<TD><CODE><B><A HREF="../../../../org/apache/axis/utils/ClassUtils.html#setDefaultClassLoader(java.lang.ClassLoader)">setDefaultClassLoader</A></B>(java.lang.ClassLoader loader)</CODE> |
| 223 |
|
| 224 |
<BR> |
| 225 |
Set the default ClassLoader.</TD> |
| 226 |
</TR> |
| 227 |
</TABLE> |
| 228 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| 229 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 230 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| 231 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
| 232 |
</TR> |
| 233 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
| 234 |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
| 235 |
</TR> |
| 236 |
</TABLE> |
| 237 |
|
| 238 |
<P> |
| 239 |
|
| 240 |
<!-- ============ FIELD DETAIL =========== --> |
| 241 |
|
| 242 |
|
| 243 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
| 244 |
|
| 245 |
<A NAME="constructor_detail"><!-- --></A> |
| 246 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 247 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 248 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 249 |
<B>Constructor Detail</B></FONT></TD> |
| 250 |
</TR> |
| 251 |
</TABLE> |
| 252 |
|
| 253 |
<A NAME="ClassUtils()"><!-- --></A><H3> |
| 254 |
ClassUtils</H3> |
| 255 |
<PRE> |
| 256 |
public <B>ClassUtils</B>()</PRE> |
| 257 |
<DL> |
| 258 |
</DL> |
| 259 |
|
| 260 |
<!-- ============ METHOD DETAIL ========== --> |
| 261 |
|
| 262 |
<A NAME="method_detail"><!-- --></A> |
| 263 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| 264 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| 265 |
<TD COLSPAN=1><FONT SIZE="+2"> |
| 266 |
<B>Method Detail</B></FONT></TD> |
| 267 |
</TR> |
| 268 |
</TABLE> |
| 269 |
|
| 270 |
<A NAME="setDefaultClassLoader(java.lang.ClassLoader)"><!-- --></A><H3> |
| 271 |
setDefaultClassLoader</H3> |
| 272 |
<PRE> |
| 273 |
public static void <B>setDefaultClassLoader</B>(java.lang.ClassLoader loader)</PRE> |
| 274 |
<DL> |
| 275 |
<DD>Set the default ClassLoader. If loader is null, the default loader is |
| 276 |
not changed. |
| 277 |
<P> |
| 278 |
<DD><DL> |
| 279 |
<DT><B>Parameters:</B><DD><CODE>loader</CODE> - the new default ClassLoader</DL> |
| 280 |
</DD> |
| 281 |
</DL> |
| 282 |
<HR> |
| 283 |
|
| 284 |
<A NAME="getDefaultClassLoader()"><!-- --></A><H3> |
| 285 |
getDefaultClassLoader</H3> |
| 286 |
<PRE> |
| 287 |
public static java.lang.ClassLoader <B>getDefaultClassLoader</B>()</PRE> |
| 288 |
<DL> |
| 289 |
<DD><DL> |
| 290 |
</DL> |
| 291 |
</DD> |
| 292 |
</DL> |
| 293 |
<HR> |
| 294 |
|
| 295 |
<A NAME="setClassLoader(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3> |
| 296 |
setClassLoader</H3> |
| 297 |
<PRE> |
| 298 |
public static void <B>setClassLoader</B>(java.lang.String className, |
| 299 |
java.lang.ClassLoader loader)</PRE> |
| 300 |
<DL> |
| 301 |
<DD>Set the ClassLoader associated with the given className. If either the |
| 302 |
class name or the loader are null, no action is performed. |
| 303 |
<P> |
| 304 |
<DD><DL> |
| 305 |
<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of a class<DD><CODE>loader</CODE> - the ClassLoader for the class</DL> |
| 306 |
</DD> |
| 307 |
</DL> |
| 308 |
<HR> |
| 309 |
|
| 310 |
<A NAME="getClassLoader(java.lang.String)"><!-- --></A><H3> |
| 311 |
getClassLoader</H3> |
| 312 |
<PRE> |
| 313 |
public static java.lang.ClassLoader <B>getClassLoader</B>(java.lang.String className)</PRE> |
| 314 |
<DL> |
| 315 |
<DD>Obtain the ClassLoader (if any) associated with the given |
| 316 |
className. |
| 317 |
<P> |
| 318 |
<DD><DL> |
| 319 |
<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of a class |
| 320 |
<DT><B>Returns:</B><DD>class loader</DL> |
| 321 |
</DD> |
| 322 |
</DL> |
| 323 |
<HR> |
| 324 |
|
| 325 |
<A NAME="removeClassLoader(java.lang.String)"><!-- --></A><H3> |
| 326 |
removeClassLoader</H3> |
| 327 |
<PRE> |
| 328 |
public static void <B>removeClassLoader</B>(java.lang.String className)</PRE> |
| 329 |
<DL> |
| 330 |
<DD>Deregister the ClassLoader for a given className. |
| 331 |
<P> |
| 332 |
<DD><DL> |
| 333 |
<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of a class</DL> |
| 334 |
</DD> |
| 335 |
</DL> |
| 336 |
<HR> |
| 337 |
|
| 338 |
<A NAME="forName(java.lang.String)"><!-- --></A><H3> |
| 339 |
forName</H3> |
| 340 |
<PRE> |
| 341 |
public static java.lang.Class <B>forName</B>(java.lang.String className) |
| 342 |
throws java.lang.ClassNotFoundException</PRE> |
| 343 |
<DL> |
| 344 |
<DD>Use this method instead of Class.forName |
| 345 |
<P> |
| 346 |
<DD><DL> |
| 347 |
<DT><B>Parameters:</B><DD><CODE>className</CODE> - Class name |
| 348 |
<DT><B>Returns:</B><DD>java class |
| 349 |
<DT><B>Throws:</B> |
| 350 |
<DD><CODE>java.lang.ClassNotFoundException</CODE> - if the class is not found</DL> |
| 351 |
</DD> |
| 352 |
</DL> |
| 353 |
<HR> |
| 354 |
|
| 355 |
<A NAME="forName(java.lang.String, boolean, java.lang.ClassLoader)"><!-- --></A><H3> |
| 356 |
forName</H3> |
| 357 |
<PRE> |
| 358 |
public static java.lang.Class <B>forName</B>(java.lang.String _className, |
| 359 |
boolean init, |
| 360 |
java.lang.ClassLoader _loader) |
| 361 |
throws java.lang.ClassNotFoundException</PRE> |
| 362 |
<DL> |
| 363 |
<DD>Use this method instead of Class.forName (String className, boolean init, ClassLoader loader) |
| 364 |
<P> |
| 365 |
<DD><DL> |
| 366 |
<DT><B>Parameters:</B><DD><CODE>_className</CODE> - Class name<DD><CODE>init</CODE> - initialize the class<DD><CODE>_loader</CODE> - class loader |
| 367 |
<DT><B>Returns:</B><DD>java class |
| 368 |
<DT><B>Throws:</B> |
| 369 |
<DD><CODE>java.lang.ClassNotFoundException</CODE> - if the class is not found</DL> |
| 370 |
</DD> |
| 371 |
</DL> |
| 372 |
<HR> |
| 373 |
|
| 374 |
<A NAME="getResourceAsStream(java.lang.Class, java.lang.String, boolean)"><!-- --></A><H3> |
| 375 |
getResourceAsStream</H3> |
| 376 |
<PRE> |
| 377 |
public static java.io.InputStream <B>getResourceAsStream</B>(java.lang.Class clazz, |
| 378 |
java.lang.String resource, |
| 379 |
boolean checkThreadContextFirst)</PRE> |
| 380 |
<DL> |
| 381 |
<DD>Get an input stream from a named resource. |
| 382 |
Tries |
| 383 |
<ol> |
| 384 |
<li>the classloader that loaded "clazz" first, |
| 385 |
<li>the system classloader |
| 386 |
<li>the class "clazz" itself |
| 387 |
</ol> |
| 388 |
<P> |
| 389 |
<DD><DL> |
| 390 |
<DT><B>Parameters:</B><DD><CODE>clazz</CODE> - class to use in the lookups<DD><CODE>resource</CODE> - resource string to look for<DD><CODE>checkThreadContextFirst</CODE> - check the thread context first? |
| 391 |
<DT><B>Returns:</B><DD>input stream if found, or null</DL> |
| 392 |
</DD> |
| 393 |
</DL> |
| 394 |
<HR> |
| 395 |
|
| 396 |
<A NAME="getResourceAsStream(java.lang.Class, java.lang.String)"><!-- --></A><H3> |
| 397 |
getResourceAsStream</H3> |
| 398 |
<PRE> |
| 399 |
public static java.io.InputStream <B>getResourceAsStream</B>(java.lang.Class clazz, |
| 400 |
java.lang.String resource)</PRE> |
| 401 |
<DL> |
| 402 |
<DD>Get an input stream from a named resource. |
| 403 |
Tries |
| 404 |
<ol> |
| 405 |
<li>the classloader that loaded "clazz" first, |
| 406 |
<li>the system classloader |
| 407 |
<li>the class "clazz" itself |
| 408 |
</ol> |
| 409 |
<P> |
| 410 |
<DD><DL> |
| 411 |
<DT><B>Parameters:</B><DD><CODE>clazz</CODE> - class to use in the lookups<DD><CODE>resource</CODE> - resource string to look for |
| 412 |
<DT><B>Returns:</B><DD>input stream if found, or null</DL> |
| 413 |
</DD> |
| 414 |
</DL> |
| 415 |
<HR> |
| 416 |
|
| 417 |
<A NAME="createClassLoader(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3> |
| 418 |
createClassLoader</H3> |
| 419 |
<PRE> |
| 420 |
public static java.lang.ClassLoader <B>createClassLoader</B>(java.lang.String classpath, |
| 421 |
java.lang.ClassLoader parent) |
| 422 |
throws java.lang.SecurityException</PRE> |
| 423 |
<DL> |
| 424 |
<DD>Creates a new ClassLoader from a classpath specification and a parent |
| 425 |
class loader. |
| 426 |
The classpath string will be split using the system path seperator |
| 427 |
character (e.g. : or ;), just as the java system-wide class path is |
| 428 |
processed. |
| 429 |
<P> |
| 430 |
<DD><DL> |
| 431 |
<DT><B>Parameters:</B><DD><CODE>classpath</CODE> - the classpath String<DD><CODE>parent</CODE> - the parent ClassLoader, or null if the default is to be |
| 432 |
used |
| 433 |
<DT><B>Throws:</B> |
| 434 |
<DD><CODE>java.lang.SecurityException</CODE> - if you don't have privilages to create |
| 435 |
class loaders |
| 436 |
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if your classpath string is silly</DL> |
| 437 |
</DD> |
| 438 |
</DL> |
| 439 |
<!-- ========= END OF CLASS DATA ========= --> |
| 440 |
<HR> |
| 441 |
|
| 442 |
|
| 443 |
<!-- ======= START OF BOTTOM NAVBAR ====== --> |
| 444 |
<A NAME="navbar_bottom"><!-- --></A> |
| 445 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| 446 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| 447 |
<TR> |
| 448 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| 449 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
| 450 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| 451 |
<TR ALIGN="center" VALIGN="top"> |
| 452 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| 453 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| 454 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| 455 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| 456 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| 457 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| 458 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| 459 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| 460 |
</TR> |
| 461 |
</TABLE> |
| 462 |
</TD> |
| 463 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| 464 |
</EM> |
| 465 |
</TD> |
| 466 |
</TR> |
| 467 |
|
| 468 |
<TR> |
| 469 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 470 |
<A HREF="../../../../org/apache/axis/utils/ClasspathUtils.html" title="class in org.apache.axis.utils"><B>PREV CLASS</B></A> |
| 471 |
<A HREF="../../../../org/apache/axis/utils/CLOption.html" title="class in org.apache.axis.utils"><B>NEXT CLASS</B></A></FONT></TD> |
| 472 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| 473 |
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> |
| 474 |
<A HREF="ClassUtils.html" target="_top"><B>NO FRAMES</B></A> |
| 475 |
<SCRIPT type="text/javascript"> |
| 476 |
<!-- |
| 477 |
if(window==top) { |
| 478 |
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| 479 |
} |
| 480 |
//--> |
| 481 |
</SCRIPT> |
| 482 |
<NOSCRIPT> |
| 483 |
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| 484 |
</NOSCRIPT> |
| 485 |
|
| 486 |
</FONT></TD> |
| 487 |
</TR> |
| 488 |
<TR> |
| 489 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 490 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| 491 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| 492 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| 493 |
</TR> |
| 494 |
</TABLE> |
| 495 |
<A NAME="skip-navbar_bottom"></A> |
| 496 |
<!-- ======== END OF BOTTOM NAVBAR ======= --> |
| 497 |
|
| 498 |
<HR> |
| 499 |
Copyright © 2005 Apache Web Services Project. All Rights Reserved. |
| 500 |
</BODY> |
| 501 |
</HTML> |