PageRenderTime 52ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/sites/libxjava/libxjava-cdc/apidocs/com/github/libxjava/lang/IClassLoader.html

https://github.com/mcpat/mcpat.github.com
HTML | 271 lines | 223 code | 28 blank | 20 comment | 0 complexity | 5d47aac8671d6179e9f77c99b23281ac MD5 | raw file
  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.6.0_22) on Tue Dec 07 16:28:00 CET 2010 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. IClassLoader (Lib-Cross-Java CDC 0.2 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2010-12-07">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="IClassLoader (Lib-Cross-Java CDC 0.2 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IClassLoader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;PREV CLASS&nbsp;
  52. &nbsp;<A HREF="../../../../com/github/libxjava/lang/SimpleClassLoader.html" title="class in com.github.libxjava.lang"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../index.html?com/github/libxjava/lang/IClassLoader.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="IClassLoader.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. com.github.libxjava.lang</FONT>
  82. <BR>
  83. Interface IClassLoader</H2>
  84. <DL>
  85. <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../com/github/libxjava/lang/SimpleClassLoader.html" title="class in com.github.libxjava.lang">SimpleClassLoader</A></DD>
  86. </DL>
  87. <HR>
  88. <DL>
  89. <DT><PRE>public interface <B>IClassLoader</B></DL>
  90. </PRE>
  91. <P>
  92. Class loading interface for platforms with no <code>java.lang.ClassLoader</code>.
  93. Classloaders are mainly used in the deserialisers.
  94. <P>
  95. <P>
  96. <DL>
  97. <DT><B>Version:</B></DT>
  98. <DD>libxjava-cdc - 0.2</DD>
  99. <DT><B>Author:</B></DT>
  100. <DD>Marcel Patzlaff</DD>
  101. </DL>
  102. <HR>
  103. <P>
  104. <!-- ========== METHOD SUMMARY =========== -->
  105. <A NAME="method_summary"><!-- --></A>
  106. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  107. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  108. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  109. <B>Method Summary</B></FONT></TH>
  110. </TR>
  111. <TR BGCOLOR="white" CLASS="TableRowColor">
  112. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  113. <CODE>&nbsp;<A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
  114. <TD><CODE><B><A HREF="../../../../com/github/libxjava/lang/IClassLoader.html#getResourceAsStream(java.lang.String)">getResourceAsStream</A></B>(<A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  115. <BR>
  116. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds a resource with the given name in the classpath of this classloader.</TD>
  117. </TR>
  118. <TR BGCOLOR="white" CLASS="TableRowColor">
  119. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  120. <CODE>&nbsp;<A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A></CODE></FONT></TD>
  121. <TD><CODE><B><A HREF="../../../../com/github/libxjava/lang/IClassLoader.html#loadClass(java.lang.String)">loadClass</A></B>(<A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  122. <BR>
  123. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>Class</object> object associated with the class with the
  124. given name.</TD>
  125. </TR>
  126. </TABLE>
  127. &nbsp;
  128. <P>
  129. <!-- ============ METHOD DETAIL ========== -->
  130. <A NAME="method_detail"><!-- --></A>
  131. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  132. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  133. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  134. <B>Method Detail</B></FONT></TH>
  135. </TR>
  136. </TABLE>
  137. <A NAME="loadClass(java.lang.String)"><!-- --></A><H3>
  138. loadClass</H3>
  139. <PRE>
  140. <A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A> <B>loadClass</B>(<A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)
  141. throws <A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></PRE>
  142. <DL>
  143. <DD>Returns the <code>Class</object> object associated with the class with the
  144. given name. The classpath currently associated with this classloader
  145. will be searched.
  146. <P>
  147. <DD><DL>
  148. <DT><B>Parameters:</B><DD><CODE>name</CODE> - the fully qualified name of the desired class
  149. <DT><B>Returns:</B><DD>the <code>Class</code> object for the class with the specified name
  150. <DT><B>Throws:</B>
  151. <DD><CODE><A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></CODE> - if the class could not be found
  152. <DD><CODE><A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/Error.html?is-external=true" title="class or interface in java.lang">Error</A></CODE> - if the function fails for any other reason</DL>
  153. </DD>
  154. </DL>
  155. <HR>
  156. <A NAME="getResourceAsStream(java.lang.String)"><!-- --></A><H3>
  157. getResourceAsStream</H3>
  158. <PRE>
  159. <A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>getResourceAsStream</B>(<A HREF="http://download.oracle.com/javame/config/cdc/ref-impl/cdc1.1.2/jsr218/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  160. <DL>
  161. <DD>Finds a resource with the given name in the classpath of this classloader.
  162. This method returns <code>null</code> if no resource with this name is found.
  163. <p>
  164. The resource names can be represented in two different formats: absolute or relative.
  165. <p>
  166. Absolute format:
  167. <ul><code>/packagePathName/resourceName</code></ul>
  168. <p>
  169. Relative format:
  170. <ul><code>resourceName</code></ul>
  171. <p>
  172. In the absolute format, the programmer provides a fully qualified name that includes
  173. both the full path and the name of the resource inside the classpath. In the path
  174. names, the character "/" is used as the separator.
  175. <p>
  176. In the relative format, the programmer provides only the name of the actual resource.
  177. Relative names are converted to absolute names by the system by prefixing the
  178. resource name with the fully qualified package name of class upon which the
  179. <code>getResourceAsStream</code> method was called.
  180. <P>
  181. <DD><DL>
  182. <DT><B>Parameters:</B><DD><CODE>name</CODE> - name of the desired resource
  183. <DT><B>Returns:</B><DD>a <code>java.io.InputStream</code> object</DL>
  184. </DD>
  185. </DL>
  186. <!-- ========= END OF CLASS DATA ========= -->
  187. <HR>
  188. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  189. <A NAME="navbar_bottom"><!-- --></A>
  190. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  191. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  192. <TR>
  193. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  194. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  195. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  196. <TR ALIGN="center" VALIGN="top">
  197. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  198. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  199. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  200. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IClassLoader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  201. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  202. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  203. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  204. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  205. </TR>
  206. </TABLE>
  207. </TD>
  208. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  209. </EM>
  210. </TD>
  211. </TR>
  212. <TR>
  213. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  214. &nbsp;PREV CLASS&nbsp;
  215. &nbsp;<A HREF="../../../../com/github/libxjava/lang/SimpleClassLoader.html" title="class in com.github.libxjava.lang"><B>NEXT CLASS</B></A></FONT></TD>
  216. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  217. <A HREF="../../../../index.html?com/github/libxjava/lang/IClassLoader.html" target="_top"><B>FRAMES</B></A> &nbsp;
  218. &nbsp;<A HREF="IClassLoader.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  219. &nbsp;<SCRIPT type="text/javascript">
  220. <!--
  221. if(window==top) {
  222. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  223. }
  224. //-->
  225. </SCRIPT>
  226. <NOSCRIPT>
  227. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  228. </NOSCRIPT>
  229. </FONT></TD>
  230. </TR>
  231. <TR>
  232. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  233. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  234. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  235. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  236. </TR>
  237. </TABLE>
  238. <A NAME="skip-navbar_bottom"></A>
  239. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  240. <HR>
  241. Copyright &#169; 2010 <a href="http://mcpat.github.com">Marcel Patzlaff</a>. All Rights Reserved.
  242. </BODY>
  243. </HTML>