source: release-kits/lirk3/resources/gs3-release-maker/ant/docs/manual/api/org/apache/tools/zip/ZipEntry.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 28.8 KB
Line 
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:35 NZST 2007 -->
6<TITLE>
7ZipEntry (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.zip.ZipEntry class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="ZipEntry (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>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&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
50<TR>
51<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52&nbsp;<A HREF="../../../../org/apache/tools/zip/UnrecognizedExtraField.html" title="class in org.apache.tools.zip"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../org/apache/tools/zip/ZipFile.html" title="class in org.apache.tools.zip"><B>NEXT CLASS</B></A></FONT></TD>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56&nbsp;<A HREF="ZipEntry.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.util.zip.ZipEntry">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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">
84org.apache.tools.zip</FONT>
85<BR>
86Class ZipEntry</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by">java.util.zip.ZipEntry
90 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.zip.ZipEntry</B>
91</PRE>
92<DL>
93<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.util.zip.ZipConstants</DD>
94</DL>
95<HR>
96<DL>
97<DT>public class <B>ZipEntry</B><DT>extends java.util.zip.ZipEntry<DT>implements java.lang.Cloneable</DL>
98
99<P>
100Extension that adds better handling of extra fields and provides
101 access to the internal and external file attributes.
102<P>
103
104<P>
105<HR>
106
107<P>
108<!-- ======== NESTED CLASS SUMMARY ======== -->
109
110
111<!-- =========== FIELD SUMMARY =========== -->
112
113<A NAME="field_summary"><!-- --></A>
114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116<TD COLSPAN=2><FONT SIZE="+2">
117<B>Field Summary</B></FONT></TD>
118</TR>
119</TABLE>
120&nbsp;<A NAME="fields_inherited_from_class_java.util.zip.ZipEntry"><!-- --></A>
121<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
123<TD><B>Fields inherited from class java.util.zip.ZipEntry</B></TD>
124</TR>
125<TR BGCOLOR="white" CLASS="TableRowColor">
126<TD><CODE>CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, DEFLATED, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER, STORED</CODE></TD>
127</TR>
128</TABLE>
129&nbsp;
130<!-- ======== CONSTRUCTOR SUMMARY ======== -->
131
132<A NAME="constructor_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>Constructor 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>protected </CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#ZipEntry()">ZipEntry</A></B>()</CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>&nbsp;</CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#ZipEntry(java.lang.String)">ZipEntry</A></B>(java.lang.String&nbsp;name)</CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new zip entry with the specified name.</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>&nbsp;</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#ZipEntry(java.util.zip.ZipEntry)">ZipEntry</A></B>(java.util.zip.ZipEntry&nbsp;entry)</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new zip entry with fields taken from the specified zip entry.</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>&nbsp;</CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#ZipEntry(org.apache.tools.zip.ZipEntry)">ZipEntry</A></B>(<A HREF="../../../../org/apache/tools/zip/ZipEntry.html" title="class in org.apache.tools.zip">ZipEntry</A>&nbsp;entry)</CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new zip entry with fields taken from the specified zip entry.</TD>
169</TR>
170</TABLE>
171&nbsp;
172<!-- ========== METHOD SUMMARY =========== -->
173
174<A NAME="method_summary"><!-- --></A>
175<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
176<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
177<TD COLSPAN=2><FONT SIZE="+2">
178<B>Method Summary</B></FONT></TD>
179</TR>
180<TR BGCOLOR="white" CLASS="TableRowColor">
181<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182<CODE>&nbsp;void</CODE></FONT></TD>
183<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#addExtraField(org.apache.tools.zip.ZipExtraField)">addExtraField</A></B>(<A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>&nbsp;ze)</CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an extra fields - replacing an already present extra field
187 of the same type.</TD>
188</TR>
189<TR BGCOLOR="white" CLASS="TableRowColor">
190<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
192<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#clone()">clone</A></B>()</CODE>
193
194<BR>
195&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overwrite clone</TD>
196</TR>
197<TR BGCOLOR="white" CLASS="TableRowColor">
198<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
199<CODE>&nbsp;byte[]</CODE></FONT></TD>
200<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getCentralDirectoryExtra()">getCentralDirectoryExtra</A></B>()</CODE>
201
202<BR>
203&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the extra data for the central directory.</TD>
204</TR>
205<TR BGCOLOR="white" CLASS="TableRowColor">
206<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207<CODE>&nbsp;long</CODE></FONT></TD>
208<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getCompressedSize()">getCompressedSize</A></B>()</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override to make this class work in JDK 1.1 like a 1.2 class.</TD>
212</TR>
213<TR BGCOLOR="white" CLASS="TableRowColor">
214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215<CODE>&nbsp;long</CODE></FONT></TD>
216<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getExternalAttributes()">getExternalAttributes</A></B>()</CODE>
217
218<BR>
219&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the external file attributes.</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223<CODE>&nbsp;<A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>[]</CODE></FONT></TD>
224<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getExtraFields()">getExtraFields</A></B>()</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves extra fields.</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>&nbsp;int</CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getInternalAttributes()">getInternalAttributes</A></B>()</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the internal file attributes.</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>&nbsp;byte[]</CODE></FONT></TD>
240<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getLocalFileDataExtra()">getLocalFileDataExtra</A></B>()</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the extra data for the local file data.</TD>
244</TR>
245<TR BGCOLOR="white" CLASS="TableRowColor">
246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
248<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getName()">getName</A></B>()</CODE>
249
250<BR>
251&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
252</TR>
253<TR BGCOLOR="white" CLASS="TableRowColor">
254<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
255<CODE>&nbsp;int</CODE></FONT></TD>
256<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getPlatform()">getPlatform</A></B>()</CODE>
257
258<BR>
259&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Platform specification to put into the &quot;version made
260 by&quot; part of the central file header.</TD>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264<CODE>&nbsp;int</CODE></FONT></TD>
265<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#getUnixMode()">getUnixMode</A></B>()</CODE>
266
267<BR>
268&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unix permission.</TD>
269</TR>
270<TR BGCOLOR="white" CLASS="TableRowColor">
271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272<CODE>&nbsp;boolean</CODE></FONT></TD>
273<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#isDirectory()">isDirectory</A></B>()</CODE>
274
275<BR>
276&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
277</TR>
278<TR BGCOLOR="white" CLASS="TableRowColor">
279<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280<CODE>&nbsp;void</CODE></FONT></TD>
281<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#removeExtraField(org.apache.tools.zip.ZipShort)">removeExtraField</A></B>(<A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A>&nbsp;type)</CODE>
282
283<BR>
284&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove an extra fields.</TD>
285</TR>
286<TR BGCOLOR="white" CLASS="TableRowColor">
287<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288<CODE>&nbsp;void</CODE></FONT></TD>
289<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setComprSize(long)">setComprSize</A></B>(long&nbsp;size)</CODE>
290
291<BR>
292&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make this class work in JDK 1.1 like a 1.2 class.</TD>
293</TR>
294<TR BGCOLOR="white" CLASS="TableRowColor">
295<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296<CODE>&nbsp;void</CODE></FONT></TD>
297<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setExternalAttributes(long)">setExternalAttributes</A></B>(long&nbsp;value)</CODE>
298
299<BR>
300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the external file attributes.</TD>
301</TR>
302<TR BGCOLOR="white" CLASS="TableRowColor">
303<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304<CODE>protected &nbsp;void</CODE></FONT></TD>
305<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setExtra()">setExtra</A></B>()</CODE>
306
307<BR>
308&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unfortunately <CODE>java.util.zip.ZipOutputStream</CODE> seems to access the extra data
309 directly, so overriding getExtra doesn't help - we need to
310 modify super's data directly.</TD>
311</TR>
312<TR BGCOLOR="white" CLASS="TableRowColor">
313<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314<CODE>&nbsp;void</CODE></FONT></TD>
315<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setExtra(byte[])">setExtra</A></B>(byte[]&nbsp;extra)</CODE>
316
317<BR>
318&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Throws an Exception if extra data cannot be parsed into extra fields.</TD>
319</TR>
320<TR BGCOLOR="white" CLASS="TableRowColor">
321<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322<CODE>&nbsp;void</CODE></FONT></TD>
323<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setExtraFields(org.apache.tools.zip.ZipExtraField[])">setExtraFields</A></B>(<A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>[]&nbsp;fields)</CODE>
324
325<BR>
326&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces all currently attached extra fields with the new array.</TD>
327</TR>
328<TR BGCOLOR="white" CLASS="TableRowColor">
329<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
330<CODE>&nbsp;void</CODE></FONT></TD>
331<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setInternalAttributes(int)">setInternalAttributes</A></B>(int&nbsp;value)</CODE>
332
333<BR>
334&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the internal file attributes.</TD>
335</TR>
336<TR BGCOLOR="white" CLASS="TableRowColor">
337<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
338<CODE>protected &nbsp;void</CODE></FONT></TD>
339<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setName(java.lang.String)">setName</A></B>(java.lang.String&nbsp;name)</CODE>
340
341<BR>
342&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
343</TR>
344<TR BGCOLOR="white" CLASS="TableRowColor">
345<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
346<CODE>protected &nbsp;void</CODE></FONT></TD>
347<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setPlatform(int)">setPlatform</A></B>(int&nbsp;platform)</CODE>
348
349<BR>
350&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
351</TR>
352<TR BGCOLOR="white" CLASS="TableRowColor">
353<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354<CODE>&nbsp;void</CODE></FONT></TD>
355<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setUnixMode(int)">setUnixMode</A></B>(int&nbsp;mode)</CODE>
356
357<BR>
358&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets Unix permissions in a way that is understood by Info-Zip's
359 unzip command.</TD>
360</TR>
361</TABLE>
362&nbsp;<A NAME="methods_inherited_from_class_java.util.zip.ZipEntry"><!-- --></A>
363<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
364<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
365<TD><B>Methods inherited from class java.util.zip.ZipEntry</B></TD>
366</TR>
367<TR BGCOLOR="white" CLASS="TableRowColor">
368<TD><CODE>getComment, getCrc, getExtra, getMethod, getSize, getTime, hashCode, setComment, setCompressedSize, setCrc, setMethod, setSize, setTime, toString</CODE></TD>
369</TR>
370</TABLE>
371&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
372<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
373<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
374<TD><B>Methods inherited from class java.lang.Object</B></TD>
375</TR>
376<TR BGCOLOR="white" CLASS="TableRowColor">
377<TD><CODE>equals, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
378</TR>
379</TABLE>
380&nbsp;
381<P>
382
383<!-- ============ FIELD DETAIL =========== -->
384
385
386<!-- ========= CONSTRUCTOR DETAIL ======== -->
387
388<A NAME="constructor_detail"><!-- --></A>
389<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
390<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
391<TD COLSPAN=1><FONT SIZE="+2">
392<B>Constructor Detail</B></FONT></TD>
393</TR>
394</TABLE>
395
396<A NAME="ZipEntry(java.lang.String)"><!-- --></A><H3>
397ZipEntry</H3>
398<PRE>
399public <B>ZipEntry</B>(java.lang.String&nbsp;name)</PRE>
400<DL>
401<DD>Creates a new zip entry with the specified name.
402<P>
403<DT><B>Since:</B></DT>
404 <DD>1.1</DD>
405</DL>
406<HR>
407
408<A NAME="ZipEntry(java.util.zip.ZipEntry)"><!-- --></A><H3>
409ZipEntry</H3>
410<PRE>
411public <B>ZipEntry</B>(java.util.zip.ZipEntry&nbsp;entry)
412 throws java.util.zip.ZipException</PRE>
413<DL>
414<DD>Creates a new zip entry with fields taken from the specified zip entry.
415<P>
416<DT><B>Since:</B></DT>
417 <DD>1.1</DD>
418</DL>
419<HR>
420
421<A NAME="ZipEntry(org.apache.tools.zip.ZipEntry)"><!-- --></A><H3>
422ZipEntry</H3>
423<PRE>
424public <B>ZipEntry</B>(<A HREF="../../../../org/apache/tools/zip/ZipEntry.html" title="class in org.apache.tools.zip">ZipEntry</A>&nbsp;entry)
425 throws java.util.zip.ZipException</PRE>
426<DL>
427<DD>Creates a new zip entry with fields taken from the specified zip entry.
428<P>
429<DT><B>Since:</B></DT>
430 <DD>1.1</DD>
431</DL>
432<HR>
433
434<A NAME="ZipEntry()"><!-- --></A><H3>
435ZipEntry</H3>
436<PRE>
437protected <B>ZipEntry</B>()</PRE>
438<DL>
439<DT><B>Since:</B></DT>
440 <DD>1.9</DD>
441</DL>
442
443<!-- ============ METHOD DETAIL ========== -->
444
445<A NAME="method_detail"><!-- --></A>
446<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
447<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
448<TD COLSPAN=1><FONT SIZE="+2">
449<B>Method Detail</B></FONT></TD>
450</TR>
451</TABLE>
452
453<A NAME="clone()"><!-- --></A><H3>
454clone</H3>
455<PRE>
456public java.lang.Object <B>clone</B>()</PRE>
457<DL>
458<DD>Overwrite clone
459<P>
460<DD><DL>
461</DL>
462</DD>
463<DD><DL>
464<DT><B>Since:</B></DT>
465 <DD>1.1</DD>
466</DL>
467</DD>
468</DL>
469<HR>
470
471<A NAME="getInternalAttributes()"><!-- --></A><H3>
472getInternalAttributes</H3>
473<PRE>
474public int <B>getInternalAttributes</B>()</PRE>
475<DL>
476<DD>Retrieves the internal file attributes.
477<P>
478<DD><DL>
479</DL>
480</DD>
481<DD><DL>
482<DT><B>Since:</B></DT>
483 <DD>1.1</DD>
484</DL>
485</DD>
486</DL>
487<HR>
488
489<A NAME="setInternalAttributes(int)"><!-- --></A><H3>
490setInternalAttributes</H3>
491<PRE>
492public void <B>setInternalAttributes</B>(int&nbsp;value)</PRE>
493<DL>
494<DD>Sets the internal file attributes.
495<P>
496<DD><DL>
497</DL>
498</DD>
499<DD><DL>
500<DT><B>Since:</B></DT>
501 <DD>1.1</DD>
502</DL>
503</DD>
504</DL>
505<HR>
506
507<A NAME="getExternalAttributes()"><!-- --></A><H3>
508getExternalAttributes</H3>
509<PRE>
510public long <B>getExternalAttributes</B>()</PRE>
511<DL>
512<DD>Retrieves the external file attributes.
513<P>
514<DD><DL>
515</DL>
516</DD>
517<DD><DL>
518<DT><B>Since:</B></DT>
519 <DD>1.1</DD>
520</DL>
521</DD>
522</DL>
523<HR>
524
525<A NAME="setExternalAttributes(long)"><!-- --></A><H3>
526setExternalAttributes</H3>
527<PRE>
528public void <B>setExternalAttributes</B>(long&nbsp;value)</PRE>
529<DL>
530<DD>Sets the external file attributes.
531<P>
532<DD><DL>
533</DL>
534</DD>
535<DD><DL>
536<DT><B>Since:</B></DT>
537 <DD>1.1</DD>
538</DL>
539</DD>
540</DL>
541<HR>
542
543<A NAME="setUnixMode(int)"><!-- --></A><H3>
544setUnixMode</H3>
545<PRE>
546public void <B>setUnixMode</B>(int&nbsp;mode)</PRE>
547<DL>
548<DD>Sets Unix permissions in a way that is understood by Info-Zip's
549 unzip command.
550<P>
551<DD><DL>
552</DL>
553</DD>
554<DD><DL>
555<DT><B>Since:</B></DT>
556 <DD>Ant 1.5.2</DD>
557</DL>
558</DD>
559</DL>
560<HR>
561
562<A NAME="getUnixMode()"><!-- --></A><H3>
563getUnixMode</H3>
564<PRE>
565public int <B>getUnixMode</B>()</PRE>
566<DL>
567<DD>Unix permission.
568<P>
569<DD><DL>
570</DL>
571</DD>
572<DD><DL>
573<DT><B>Since:</B></DT>
574 <DD>Ant 1.6</DD>
575</DL>
576</DD>
577</DL>
578<HR>
579
580<A NAME="getPlatform()"><!-- --></A><H3>
581getPlatform</H3>
582<PRE>
583public int <B>getPlatform</B>()</PRE>
584<DL>
585<DD>Platform specification to put into the &quot;version made
586 by&quot; part of the central file header.
587<P>
588<DD><DL>
589</DL>
590</DD>
591<DD><DL>
592
593<DT><B>Returns:</B><DD>0 (MS-DOS FAT) unless <A HREF="../../../../org/apache/tools/zip/ZipEntry.html#setUnixMode(int)"><CODE>setUnixMode</CODE></A>
594 has been called, in which case 3 (Unix) will be returned.<DT><B>Since:</B></DT>
595 <DD>Ant 1.5.2</DD>
596</DL>
597</DD>
598</DL>
599<HR>
600
601<A NAME="setPlatform(int)"><!-- --></A><H3>
602setPlatform</H3>
603<PRE>
604protected void <B>setPlatform</B>(int&nbsp;platform)</PRE>
605<DL>
606<DD><DL>
607</DL>
608</DD>
609<DD><DL>
610<DT><B>Since:</B></DT>
611 <DD>1.9</DD>
612</DL>
613</DD>
614</DL>
615<HR>
616
617<A NAME="setExtraFields(org.apache.tools.zip.ZipExtraField[])"><!-- --></A><H3>
618setExtraFields</H3>
619<PRE>
620public void <B>setExtraFields</B>(<A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>[]&nbsp;fields)</PRE>
621<DL>
622<DD>Replaces all currently attached extra fields with the new array.
623<P>
624<DD><DL>
625</DL>
626</DD>
627<DD><DL>
628<DT><B>Since:</B></DT>
629 <DD>1.1</DD>
630</DL>
631</DD>
632</DL>
633<HR>
634
635<A NAME="getExtraFields()"><!-- --></A><H3>
636getExtraFields</H3>
637<PRE>
638public <A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>[] <B>getExtraFields</B>()</PRE>
639<DL>
640<DD>Retrieves extra fields.
641<P>
642<DD><DL>
643</DL>
644</DD>
645<DD><DL>
646<DT><B>Since:</B></DT>
647 <DD>1.1</DD>
648</DL>
649</DD>
650</DL>
651<HR>
652
653<A NAME="addExtraField(org.apache.tools.zip.ZipExtraField)"><!-- --></A><H3>
654addExtraField</H3>
655<PRE>
656public void <B>addExtraField</B>(<A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>&nbsp;ze)</PRE>
657<DL>
658<DD>Adds an extra fields - replacing an already present extra field
659 of the same type.
660<P>
661<DD><DL>
662</DL>
663</DD>
664<DD><DL>
665<DT><B>Since:</B></DT>
666 <DD>1.1</DD>
667</DL>
668</DD>
669</DL>
670<HR>
671
672<A NAME="removeExtraField(org.apache.tools.zip.ZipShort)"><!-- --></A><H3>
673removeExtraField</H3>
674<PRE>
675public void <B>removeExtraField</B>(<A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A>&nbsp;type)</PRE>
676<DL>
677<DD>Remove an extra fields.
678<P>
679<DD><DL>
680</DL>
681</DD>
682<DD><DL>
683<DT><B>Since:</B></DT>
684 <DD>1.1</DD>
685</DL>
686</DD>
687</DL>
688<HR>
689
690<A NAME="setExtra(byte[])"><!-- --></A><H3>
691setExtra</H3>
692<PRE>
693public void <B>setExtra</B>(byte[]&nbsp;extra)
694 throws java.lang.RuntimeException</PRE>
695<DL>
696<DD>Throws an Exception if extra data cannot be parsed into extra fields.
697<P>
698<DD><DL>
699</DL>
700</DD>
701<DD><DL>
702
703<DT><B>Throws:</B>
704<DD><CODE>java.lang.RuntimeException</CODE><DT><B>Since:</B></DT>
705 <DD>1.1</DD>
706</DL>
707</DD>
708</DL>
709<HR>
710
711<A NAME="setExtra()"><!-- --></A><H3>
712setExtra</H3>
713<PRE>
714protected void <B>setExtra</B>()</PRE>
715<DL>
716<DD>Unfortunately <CODE>java.util.zip.ZipOutputStream</CODE> seems to access the extra data
717 directly, so overriding getExtra doesn't help - we need to
718 modify super's data directly.
719<P>
720<DD><DL>
721</DL>
722</DD>
723<DD><DL>
724<DT><B>Since:</B></DT>
725 <DD>1.1</DD>
726</DL>
727</DD>
728</DL>
729<HR>
730
731<A NAME="getLocalFileDataExtra()"><!-- --></A><H3>
732getLocalFileDataExtra</H3>
733<PRE>
734public byte[] <B>getLocalFileDataExtra</B>()</PRE>
735<DL>
736<DD>Retrieves the extra data for the local file data.
737<P>
738<DD><DL>
739</DL>
740</DD>
741<DD><DL>
742<DT><B>Since:</B></DT>
743 <DD>1.1</DD>
744</DL>
745</DD>
746</DL>
747<HR>
748
749<A NAME="getCentralDirectoryExtra()"><!-- --></A><H3>
750getCentralDirectoryExtra</H3>
751<PRE>
752public byte[] <B>getCentralDirectoryExtra</B>()</PRE>
753<DL>
754<DD>Retrieves the extra data for the central directory.
755<P>
756<DD><DL>
757</DL>
758</DD>
759<DD><DL>
760<DT><B>Since:</B></DT>
761 <DD>1.1</DD>
762</DL>
763</DD>
764</DL>
765<HR>
766
767<A NAME="setComprSize(long)"><!-- --></A><H3>
768setComprSize</H3>
769<PRE>
770public void <B>setComprSize</B>(long&nbsp;size)</PRE>
771<DL>
772<DD>Make this class work in JDK 1.1 like a 1.2 class.
773
774 <p>This either stores the size for later usage or invokes
775 setCompressedSize via reflection.</p>
776<P>
777<DD><DL>
778</DL>
779</DD>
780<DD><DL>
781<DT><B>Since:</B></DT>
782 <DD>1.2</DD>
783</DL>
784</DD>
785</DL>
786<HR>
787
788<A NAME="getCompressedSize()"><!-- --></A><H3>
789getCompressedSize</H3>
790<PRE>
791public long <B>getCompressedSize</B>()</PRE>
792<DL>
793<DD>Override to make this class work in JDK 1.1 like a 1.2 class.
794<P>
795<DD><DL>
796</DL>
797</DD>
798<DD><DL>
799<DT><B>Since:</B></DT>
800 <DD>1.2</DD>
801</DL>
802</DD>
803</DL>
804<HR>
805
806<A NAME="getName()"><!-- --></A><H3>
807getName</H3>
808<PRE>
809public java.lang.String <B>getName</B>()</PRE>
810<DL>
811<DD><DL>
812</DL>
813</DD>
814<DD><DL>
815<DT><B>Since:</B></DT>
816 <DD>1.9</DD>
817</DL>
818</DD>
819</DL>
820<HR>
821
822<A NAME="isDirectory()"><!-- --></A><H3>
823isDirectory</H3>
824<PRE>
825public boolean <B>isDirectory</B>()</PRE>
826<DL>
827<DD><DL>
828</DL>
829</DD>
830<DD><DL>
831<DT><B>Since:</B></DT>
832 <DD>1.10</DD>
833</DL>
834</DD>
835</DL>
836<HR>
837
838<A NAME="setName(java.lang.String)"><!-- --></A><H3>
839setName</H3>
840<PRE>
841protected void <B>setName</B>(java.lang.String&nbsp;name)</PRE>
842<DL>
843<DD><DL>
844</DL>
845</DD>
846<DD><DL>
847</DL>
848</DD>
849</DL>
850<!-- ========= END OF CLASS DATA ========= -->
851<HR>
852
853
854<!-- ======= START OF BOTTOM NAVBAR ====== -->
855<A NAME="navbar_bottom"><!-- --></A>
856<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
857<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
858<TR>
859<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
860<A NAME="navbar_bottom_firstrow"><!-- --></A>
861<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
862 <TR ALIGN="center" VALIGN="top">
863 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
864 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
865 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
866 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
867 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
868 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
869 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
870 </TR>
871</TABLE>
872</TD>
873<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
874</EM>
875</TD>
876</TR>
877
878<TR>
879<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
880&nbsp;<A HREF="../../../../org/apache/tools/zip/UnrecognizedExtraField.html" title="class in org.apache.tools.zip"><B>PREV CLASS</B></A>&nbsp;
881&nbsp;<A HREF="../../../../org/apache/tools/zip/ZipFile.html" title="class in org.apache.tools.zip"><B>NEXT CLASS</B></A></FONT></TD>
882<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
883 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
884&nbsp;<A HREF="ZipEntry.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
885&nbsp;<SCRIPT type="text/javascript">
886 <!--
887 if(window==top) {
888 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
889 }
890 //-->
891</SCRIPT>
892<NOSCRIPT>
893 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
894</NOSCRIPT>
895
896</FONT></TD>
897</TR>
898<TR>
899<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
900 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.util.zip.ZipEntry">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
901<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
902DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
903</TR>
904</TABLE>
905<A NAME="skip-navbar_bottom"></A>
906<!-- ======== END OF BOTTOM NAVBAR ======= -->
907
908<HR>
909Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
910</BODY>
911</HTML>
Note: See TracBrowser for help on using the repository browser.