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_13) on Mon Oct 01 14:33:17 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | AntClassLoader2 (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.loader.AntClassLoader2 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="AntClassLoader2 (Apache Ant 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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | PREV CLASS
|
---|
53 | NEXT CLASS</FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="AntClassLoader2.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.loader</FONT>
|
---|
85 | <BR>
|
---|
86 | Class AntClassLoader2</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by">java.lang.ClassLoader
|
---|
90 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">org.apache.tools.ant.AntClassLoader</A>
|
---|
91 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.loader.AntClassLoader2</B>
|
---|
92 | </PRE>
|
---|
93 | <DL>
|
---|
94 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/BuildListener.html" title="interface in org.apache.tools.ant">BuildListener</A>, java.util.EventListener, <A HREF="../../../../../org/apache/tools/ant/SubBuildListener.html" title="interface in org.apache.tools.ant">SubBuildListener</A></DD>
|
---|
95 | </DL>
|
---|
96 | <HR>
|
---|
97 | <DL>
|
---|
98 | <DT>public class <B>AntClassLoader2</B><DT>extends <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">AntClassLoader</A></DL>
|
---|
99 |
|
---|
100 | <P>
|
---|
101 | An implementation of the AntClassLoader suitable for use on post JDK 1.1
|
---|
102 | platforms
|
---|
103 | <P>
|
---|
104 |
|
---|
105 | <P>
|
---|
106 | <HR>
|
---|
107 |
|
---|
108 | <P>
|
---|
109 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
110 |
|
---|
111 |
|
---|
112 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
113 |
|
---|
114 |
|
---|
115 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
116 |
|
---|
117 | <A NAME="constructor_summary"><!-- --></A>
|
---|
118 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
119 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
120 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
121 | <B>Constructor Summary</B></FONT></TD>
|
---|
122 | </TR>
|
---|
123 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
124 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/loader/AntClassLoader2.html#AntClassLoader2()">AntClassLoader2</A></B>()</CODE>
|
---|
125 |
|
---|
126 | <BR>
|
---|
127 | Constructor</TD>
|
---|
128 | </TR>
|
---|
129 | </TABLE>
|
---|
130 |
|
---|
131 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
132 |
|
---|
133 | <A NAME="method_summary"><!-- --></A>
|
---|
134 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
135 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
136 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
137 | <B>Method Summary</B></FONT></TD>
|
---|
138 | </TR>
|
---|
139 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
140 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
141 | <CODE>protected void</CODE></FONT></TD>
|
---|
142 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/loader/AntClassLoader2.html#addPathFile(java.io.File)">addPathFile</A></B>(java.io.File pathComponent)</CODE>
|
---|
143 |
|
---|
144 | <BR>
|
---|
145 | Add a file to the path.</TD>
|
---|
146 | </TR>
|
---|
147 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
148 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
149 | <CODE>protected java.lang.Class</CODE></FONT></TD>
|
---|
150 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/loader/AntClassLoader2.html#defineClassFromData(java.io.File, byte[], java.lang.String)">defineClassFromData</A></B>(java.io.File container,
|
---|
151 | byte[] classData,
|
---|
152 | java.lang.String className)</CODE>
|
---|
153 |
|
---|
154 | <BR>
|
---|
155 | Define a class given its bytes</TD>
|
---|
156 | </TR>
|
---|
157 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
158 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
159 | <CODE>protected void</CODE></FONT></TD>
|
---|
160 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/loader/AntClassLoader2.html#definePackage(java.io.File, java.lang.String)">definePackage</A></B>(java.io.File container,
|
---|
161 | java.lang.String className)</CODE>
|
---|
162 |
|
---|
163 | <BR>
|
---|
164 | Define the package information associated with a class.</TD>
|
---|
165 | </TR>
|
---|
166 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
167 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
168 | <CODE>protected void</CODE></FONT></TD>
|
---|
169 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/loader/AntClassLoader2.html#definePackage(java.io.File, java.lang.String, java.util.jar.Manifest)">definePackage</A></B>(java.io.File container,
|
---|
170 | java.lang.String packageName,
|
---|
171 | java.util.jar.Manifest manifest)</CODE>
|
---|
172 |
|
---|
173 | <BR>
|
---|
174 | Define the package information when the class comes from a
|
---|
175 | jar with a manifest</TD>
|
---|
176 | </TR>
|
---|
177 | </TABLE>
|
---|
178 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.AntClassLoader"><!-- --></A>
|
---|
179 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
180 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
181 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">AntClassLoader</A></B></TD>
|
---|
182 | </TR>
|
---|
183 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
184 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#addJavaLibraries()">addJavaLibraries</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#addLoaderPackageRoot(java.lang.String)">addLoaderPackageRoot</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#addPathElement(java.lang.String)">addPathElement</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#addSystemPackageRoot(java.lang.String)">addSystemPackageRoot</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#buildFinished(org.apache.tools.ant.BuildEvent)">buildFinished</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#buildStarted(org.apache.tools.ant.BuildEvent)">buildStarted</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#cleanup()">cleanup</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#findClass(java.lang.String)">findClass</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#findResources(java.lang.String)">findResources</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#forceLoadClass(java.lang.String)">forceLoadClass</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#forceLoadSystemClass(java.lang.String)">forceLoadSystemClass</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#getClasspath()">getClasspath</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#getResource(java.lang.String)">getResource</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#getResourceAsStream(java.lang.String)">getResourceAsStream</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#getResourceURL(java.io.File, java.lang.String)">getResourceURL</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#initializeClass(java.lang.Class)">initializeClass</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#isInPath(java.io.File)">isInPath</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#loadClass(java.lang.String, boolean)">loadClass</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#messageLogged(org.apache.tools.ant.BuildEvent)">messageLogged</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#resetThreadContextLoader()">resetThreadContextLoader</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#setClassPath(org.apache.tools.ant.types.Path)">setClassPath</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#setIsolated(boolean)">setIsolated</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#setParent(java.lang.ClassLoader)">setParent</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#setParentFirst(boolean)">setParentFirst</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#setProject(org.apache.tools.ant.Project)">setProject</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#setThreadContextLoader()">setThreadContextLoader</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#subBuildFinished(org.apache.tools.ant.BuildEvent)">subBuildFinished</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#subBuildStarted(org.apache.tools.ant.BuildEvent)">subBuildStarted</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#targetFinished(org.apache.tools.ant.BuildEvent)">targetFinished</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#targetStarted(org.apache.tools.ant.BuildEvent)">targetStarted</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#taskFinished(org.apache.tools.ant.BuildEvent)">taskFinished</A>, <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#taskStarted(org.apache.tools.ant.BuildEvent)">taskStarted</A></CODE></TD>
|
---|
185 | </TR>
|
---|
186 | </TABLE>
|
---|
187 | <A NAME="methods_inherited_from_class_java.lang.ClassLoader"><!-- --></A>
|
---|
188 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
189 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
190 | <TD><B>Methods inherited from class java.lang.ClassLoader</B></TD>
|
---|
191 | </TR>
|
---|
192 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
193 | <TD><CODE>clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners</CODE></TD>
|
---|
194 | </TR>
|
---|
195 | </TABLE>
|
---|
196 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
197 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
198 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
199 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
200 | </TR>
|
---|
201 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
202 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
203 | </TR>
|
---|
204 | </TABLE>
|
---|
205 |
|
---|
206 | <P>
|
---|
207 |
|
---|
208 | <!-- ============ FIELD DETAIL =========== -->
|
---|
209 |
|
---|
210 |
|
---|
211 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
212 |
|
---|
213 | <A NAME="constructor_detail"><!-- --></A>
|
---|
214 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
215 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
216 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
217 | <B>Constructor Detail</B></FONT></TD>
|
---|
218 | </TR>
|
---|
219 | </TABLE>
|
---|
220 |
|
---|
221 | <A NAME="AntClassLoader2()"><!-- --></A><H3>
|
---|
222 | AntClassLoader2</H3>
|
---|
223 | <PRE>
|
---|
224 | public <B>AntClassLoader2</B>()</PRE>
|
---|
225 | <DL>
|
---|
226 | <DD>Constructor
|
---|
227 | <P>
|
---|
228 | </DL>
|
---|
229 |
|
---|
230 | <!-- ============ METHOD DETAIL ========== -->
|
---|
231 |
|
---|
232 | <A NAME="method_detail"><!-- --></A>
|
---|
233 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
234 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
235 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
236 | <B>Method Detail</B></FONT></TD>
|
---|
237 | </TR>
|
---|
238 | </TABLE>
|
---|
239 |
|
---|
240 | <A NAME="defineClassFromData(java.io.File, byte[], java.lang.String)"><!-- --></A><H3>
|
---|
241 | defineClassFromData</H3>
|
---|
242 | <PRE>
|
---|
243 | protected java.lang.Class <B>defineClassFromData</B>(java.io.File container,
|
---|
244 | byte[] classData,
|
---|
245 | java.lang.String className)
|
---|
246 | throws java.io.IOException</PRE>
|
---|
247 | <DL>
|
---|
248 | <DD>Define a class given its bytes
|
---|
249 | <P>
|
---|
250 | <DD><DL>
|
---|
251 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#defineClassFromData(java.io.File, byte[], java.lang.String)">defineClassFromData</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">AntClassLoader</A></CODE></DL>
|
---|
252 | </DD>
|
---|
253 | <DD><DL>
|
---|
254 | <DT><B>Parameters:</B><DD><CODE>container</CODE> - the container from which the class data has been read
|
---|
255 | may be a directory or a jar/zip file.<DD><CODE>classData</CODE> - the bytecode data for the class<DD><CODE>className</CODE> - the name of the class
|
---|
256 | <DT><B>Returns:</B><DD>the Class instance created from the given data
|
---|
257 | <DT><B>Throws:</B>
|
---|
258 | <DD><CODE>java.io.IOException</CODE> - if the class data cannot be read.</DL>
|
---|
259 | </DD>
|
---|
260 | </DL>
|
---|
261 | <HR>
|
---|
262 |
|
---|
263 | <A NAME="definePackage(java.io.File, java.lang.String)"><!-- --></A><H3>
|
---|
264 | definePackage</H3>
|
---|
265 | <PRE>
|
---|
266 | protected void <B>definePackage</B>(java.io.File container,
|
---|
267 | java.lang.String className)
|
---|
268 | throws java.io.IOException</PRE>
|
---|
269 | <DL>
|
---|
270 | <DD>Define the package information associated with a class.
|
---|
271 | <P>
|
---|
272 | <DD><DL>
|
---|
273 | <DT><B>Parameters:</B><DD><CODE>container</CODE> - the file containing the class definition.<DD><CODE>className</CODE> - the class name of for which the package information
|
---|
274 | is to be determined.
|
---|
275 | <DT><B>Throws:</B>
|
---|
276 | <DD><CODE>java.io.IOException</CODE> - if the package information cannot be read from the
|
---|
277 | container.</DL>
|
---|
278 | </DD>
|
---|
279 | </DL>
|
---|
280 | <HR>
|
---|
281 |
|
---|
282 | <A NAME="definePackage(java.io.File, java.lang.String, java.util.jar.Manifest)"><!-- --></A><H3>
|
---|
283 | definePackage</H3>
|
---|
284 | <PRE>
|
---|
285 | protected void <B>definePackage</B>(java.io.File container,
|
---|
286 | java.lang.String packageName,
|
---|
287 | java.util.jar.Manifest manifest)</PRE>
|
---|
288 | <DL>
|
---|
289 | <DD>Define the package information when the class comes from a
|
---|
290 | jar with a manifest
|
---|
291 | <P>
|
---|
292 | <DD><DL>
|
---|
293 | <DT><B>Parameters:</B><DD><CODE>container</CODE> - the jar file containing the manifest<DD><CODE>packageName</CODE> - the name of the package being defined.<DD><CODE>manifest</CODE> - the jar's manifest</DL>
|
---|
294 | </DD>
|
---|
295 | </DL>
|
---|
296 | <HR>
|
---|
297 |
|
---|
298 | <A NAME="addPathFile(java.io.File)"><!-- --></A><H3>
|
---|
299 | addPathFile</H3>
|
---|
300 | <PRE>
|
---|
301 | protected void <B>addPathFile</B>(java.io.File pathComponent)
|
---|
302 | throws java.io.IOException</PRE>
|
---|
303 | <DL>
|
---|
304 | <DD>Add a file to the path. This classloader reads the manifest, if
|
---|
305 | available, and adds any additional class path jars specified in the
|
---|
306 | manifest.
|
---|
307 | <P>
|
---|
308 | <DD><DL>
|
---|
309 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html#addPathFile(java.io.File)">addPathFile</A></CODE> in class <CODE><A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">AntClassLoader</A></CODE></DL>
|
---|
310 | </DD>
|
---|
311 | <DD><DL>
|
---|
312 | <DT><B>Parameters:</B><DD><CODE>pathComponent</CODE> - the file which is to be added to the path for
|
---|
313 | this class loader
|
---|
314 | <DT><B>Throws:</B>
|
---|
315 | <DD><CODE>java.io.IOException</CODE> - if data needed from the file cannot be read.</DL>
|
---|
316 | </DD>
|
---|
317 | </DL>
|
---|
318 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
319 | <HR>
|
---|
320 |
|
---|
321 |
|
---|
322 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
323 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
324 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
325 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
326 | <TR>
|
---|
327 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
328 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
329 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
330 | <TR ALIGN="center" VALIGN="top">
|
---|
331 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
332 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
333 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
334 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
335 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
336 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
337 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
338 | </TR>
|
---|
339 | </TABLE>
|
---|
340 | </TD>
|
---|
341 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
342 | </EM>
|
---|
343 | </TD>
|
---|
344 | </TR>
|
---|
345 |
|
---|
346 | <TR>
|
---|
347 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
348 | PREV CLASS
|
---|
349 | NEXT CLASS</FONT></TD>
|
---|
350 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
351 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
352 | <A HREF="AntClassLoader2.html" target="_top"><B>NO FRAMES</B></A>
|
---|
353 | <SCRIPT type="text/javascript">
|
---|
354 | <!--
|
---|
355 | if(window==top) {
|
---|
356 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
357 | }
|
---|
358 | //-->
|
---|
359 | </SCRIPT>
|
---|
360 | <NOSCRIPT>
|
---|
361 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
362 | </NOSCRIPT>
|
---|
363 |
|
---|
364 | </FONT></TD>
|
---|
365 | </TR>
|
---|
366 | <TR>
|
---|
367 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
368 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
369 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
370 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
371 | </TR>
|
---|
372 | </TABLE>
|
---|
373 | <A NAME="skip-navbar_bottom"></A>
|
---|
374 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
375 |
|
---|
376 | <HR>
|
---|
377 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
378 | </BODY>
|
---|
379 | </HTML>
|
---|