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>
|
---|
7 | AsiExtraField (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.zip.AsiExtraField 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="AsiExtraField (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 | <A HREF="../../../../org/apache/tools/zip/ExtraFieldUtils.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>
|
---|
56 | <A HREF="AsiExtraField.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.zip</FONT>
|
---|
85 | <BR>
|
---|
86 | Class AsiExtraField</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.zip.AsiExtraField</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, <A HREF="../../../../org/apache/tools/zip/UnixStat.html" title="interface in org.apache.tools.zip">UnixStat</A>, <A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></DD>
|
---|
93 | </DL>
|
---|
94 | <HR>
|
---|
95 | <DL>
|
---|
96 | <DT>public class <B>AsiExtraField</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html" title="interface in org.apache.tools.zip">UnixStat</A>, java.lang.Cloneable</DL>
|
---|
97 |
|
---|
98 | <P>
|
---|
99 | Adds Unix file permission and UID/GID fields as well as symbolic
|
---|
100 | link handling.
|
---|
101 |
|
---|
102 | <p>This class uses the ASi extra field in the format:
|
---|
103 | <pre>
|
---|
104 | Value Size Description
|
---|
105 | ----- ---- -----------
|
---|
106 | (Unix3) 0x756e Short tag for this extra block type
|
---|
107 | TSize Short total data size for this block
|
---|
108 | CRC Long CRC-32 of the remaining data
|
---|
109 | Mode Short file permissions
|
---|
110 | SizDev Long symlink'd size OR major/minor dev num
|
---|
111 | UID Short user ID
|
---|
112 | GID Short group ID
|
---|
113 | (var.) variable symbolic link filename
|
---|
114 | </pre>
|
---|
115 | taken from appnote.iz (Info-ZIP note, 981119) found at <a
|
---|
116 | href="ftp://ftp.uu.net/pub/archiving/zip/doc/">ftp://ftp.uu.net/pub/archiving/zip/doc/</a></p>
|
---|
117 |
|
---|
118 |
|
---|
119 | <p>Short is two bytes and Long is four bytes in big endian byte and
|
---|
120 | word order, device numbers are currently not supported.</p>
|
---|
121 | <P>
|
---|
122 |
|
---|
123 | <P>
|
---|
124 | <HR>
|
---|
125 |
|
---|
126 | <P>
|
---|
127 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
128 |
|
---|
129 |
|
---|
130 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
131 |
|
---|
132 | <A NAME="field_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>Field Summary</B></FONT></TD>
|
---|
137 | </TR>
|
---|
138 | </TABLE>
|
---|
139 | <A NAME="fields_inherited_from_class_org.apache.tools.zip.UnixStat"><!-- --></A>
|
---|
140 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
141 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
142 | <TD><B>Fields inherited from interface org.apache.tools.zip.<A HREF="../../../../org/apache/tools/zip/UnixStat.html" title="interface in org.apache.tools.zip">UnixStat</A></B></TD>
|
---|
143 | </TR>
|
---|
144 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
145 | <TD><CODE><A HREF="../../../../org/apache/tools/zip/UnixStat.html#DEFAULT_DIR_PERM">DEFAULT_DIR_PERM</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html#DEFAULT_FILE_PERM">DEFAULT_FILE_PERM</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html#DEFAULT_LINK_PERM">DEFAULT_LINK_PERM</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html#DIR_FLAG">DIR_FLAG</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html#FILE_FLAG">FILE_FLAG</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html#LINK_FLAG">LINK_FLAG</A>, <A HREF="../../../../org/apache/tools/zip/UnixStat.html#PERM_MASK">PERM_MASK</A></CODE></TD>
|
---|
146 | </TR>
|
---|
147 | </TABLE>
|
---|
148 |
|
---|
149 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
150 |
|
---|
151 | <A NAME="constructor_summary"><!-- --></A>
|
---|
152 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
153 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
154 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
155 | <B>Constructor Summary</B></FONT></TD>
|
---|
156 | </TR>
|
---|
157 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
158 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#AsiExtraField()">AsiExtraField</A></B>()</CODE>
|
---|
159 |
|
---|
160 | <BR>
|
---|
161 | </TD>
|
---|
162 | </TR>
|
---|
163 | </TABLE>
|
---|
164 |
|
---|
165 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
166 |
|
---|
167 | <A NAME="method_summary"><!-- --></A>
|
---|
168 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
169 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
170 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
171 | <B>Method Summary</B></FONT></TD>
|
---|
172 | </TR>
|
---|
173 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
174 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
175 | <CODE> byte[]</CODE></FONT></TD>
|
---|
176 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getCentralDirectoryData()">getCentralDirectoryData</A></B>()</CODE>
|
---|
177 |
|
---|
178 | <BR>
|
---|
179 | Delegate to local file data.</TD>
|
---|
180 | </TR>
|
---|
181 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
182 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
183 | <CODE> <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A></CODE></FONT></TD>
|
---|
184 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getCentralDirectoryLength()">getCentralDirectoryLength</A></B>()</CODE>
|
---|
185 |
|
---|
186 | <BR>
|
---|
187 | Delegate to local file data.</TD>
|
---|
188 | </TR>
|
---|
189 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
190 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
191 | <CODE> int</CODE></FONT></TD>
|
---|
192 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getGroupId()">getGroupId</A></B>()</CODE>
|
---|
193 |
|
---|
194 | <BR>
|
---|
195 | Get the group id.</TD>
|
---|
196 | </TR>
|
---|
197 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
198 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
199 | <CODE> <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A></CODE></FONT></TD>
|
---|
200 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getHeaderId()">getHeaderId</A></B>()</CODE>
|
---|
201 |
|
---|
202 | <BR>
|
---|
203 | The Header-ID.</TD>
|
---|
204 | </TR>
|
---|
205 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
206 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
207 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
208 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getLinkedFile()">getLinkedFile</A></B>()</CODE>
|
---|
209 |
|
---|
210 | <BR>
|
---|
211 | Name of linked file</TD>
|
---|
212 | </TR>
|
---|
213 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
214 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
215 | <CODE> byte[]</CODE></FONT></TD>
|
---|
216 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getLocalFileDataData()">getLocalFileDataData</A></B>()</CODE>
|
---|
217 |
|
---|
218 | <BR>
|
---|
219 | The actual data to put into local file data - without Header-ID
|
---|
220 | or length specifier.</TD>
|
---|
221 | </TR>
|
---|
222 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
223 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
224 | <CODE> <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A></CODE></FONT></TD>
|
---|
225 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getLocalFileDataLength()">getLocalFileDataLength</A></B>()</CODE>
|
---|
226 |
|
---|
227 | <BR>
|
---|
228 | Length of the extra field in the local file data - without
|
---|
229 | Header-ID or length specifier.</TD>
|
---|
230 | </TR>
|
---|
231 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
232 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
233 | <CODE> int</CODE></FONT></TD>
|
---|
234 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getMode()">getMode</A></B>()</CODE>
|
---|
235 |
|
---|
236 | <BR>
|
---|
237 | File mode of this file.</TD>
|
---|
238 | </TR>
|
---|
239 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
240 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
241 | <CODE>protected int</CODE></FONT></TD>
|
---|
242 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getMode(int)">getMode</A></B>(int mode)</CODE>
|
---|
243 |
|
---|
244 | <BR>
|
---|
245 | Get the file mode for given permissions with the correct file type.</TD>
|
---|
246 | </TR>
|
---|
247 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
249 | <CODE> int</CODE></FONT></TD>
|
---|
250 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#getUserId()">getUserId</A></B>()</CODE>
|
---|
251 |
|
---|
252 | <BR>
|
---|
253 | Get the user id.</TD>
|
---|
254 | </TR>
|
---|
255 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
257 | <CODE> boolean</CODE></FONT></TD>
|
---|
258 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#isDirectory()">isDirectory</A></B>()</CODE>
|
---|
259 |
|
---|
260 | <BR>
|
---|
261 | Is this entry a directory?</TD>
|
---|
262 | </TR>
|
---|
263 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
264 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
265 | <CODE> boolean</CODE></FONT></TD>
|
---|
266 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#isLink()">isLink</A></B>()</CODE>
|
---|
267 |
|
---|
268 | <BR>
|
---|
269 | Is this entry a symbolic link?</TD>
|
---|
270 | </TR>
|
---|
271 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
272 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
273 | <CODE> void</CODE></FONT></TD>
|
---|
274 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#parseFromLocalFileData(byte[], int, int)">parseFromLocalFileData</A></B>(byte[] data,
|
---|
275 | int offset,
|
---|
276 | int length)</CODE>
|
---|
277 |
|
---|
278 | <BR>
|
---|
279 | Populate data from this array as if it was in local file data.</TD>
|
---|
280 | </TR>
|
---|
281 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
283 | <CODE> void</CODE></FONT></TD>
|
---|
284 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#setDirectory(boolean)">setDirectory</A></B>(boolean dirFlag)</CODE>
|
---|
285 |
|
---|
286 | <BR>
|
---|
287 | Indicate whether this entry is a directory.</TD>
|
---|
288 | </TR>
|
---|
289 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
290 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
291 | <CODE> void</CODE></FONT></TD>
|
---|
292 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#setGroupId(int)">setGroupId</A></B>(int gid)</CODE>
|
---|
293 |
|
---|
294 | <BR>
|
---|
295 | Set the group id.</TD>
|
---|
296 | </TR>
|
---|
297 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
298 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
299 | <CODE> void</CODE></FONT></TD>
|
---|
300 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#setLinkedFile(java.lang.String)">setLinkedFile</A></B>(java.lang.String name)</CODE>
|
---|
301 |
|
---|
302 | <BR>
|
---|
303 | Indicate that this entry is a symbolic link to the given filename.</TD>
|
---|
304 | </TR>
|
---|
305 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
307 | <CODE> void</CODE></FONT></TD>
|
---|
308 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#setMode(int)">setMode</A></B>(int mode)</CODE>
|
---|
309 |
|
---|
310 | <BR>
|
---|
311 | File mode of this file.</TD>
|
---|
312 | </TR>
|
---|
313 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
315 | <CODE> void</CODE></FONT></TD>
|
---|
316 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html#setUserId(int)">setUserId</A></B>(int uid)</CODE>
|
---|
317 |
|
---|
318 | <BR>
|
---|
319 | Set the user id.</TD>
|
---|
320 | </TR>
|
---|
321 | </TABLE>
|
---|
322 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
323 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
324 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
325 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
326 | </TR>
|
---|
327 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
328 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
329 | </TR>
|
---|
330 | </TABLE>
|
---|
331 |
|
---|
332 | <P>
|
---|
333 |
|
---|
334 | <!-- ============ FIELD DETAIL =========== -->
|
---|
335 |
|
---|
336 |
|
---|
337 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
338 |
|
---|
339 | <A NAME="constructor_detail"><!-- --></A>
|
---|
340 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
341 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
342 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
343 | <B>Constructor Detail</B></FONT></TD>
|
---|
344 | </TR>
|
---|
345 | </TABLE>
|
---|
346 |
|
---|
347 | <A NAME="AsiExtraField()"><!-- --></A><H3>
|
---|
348 | AsiExtraField</H3>
|
---|
349 | <PRE>
|
---|
350 | public <B>AsiExtraField</B>()</PRE>
|
---|
351 | <DL>
|
---|
352 | </DL>
|
---|
353 |
|
---|
354 | <!-- ============ METHOD DETAIL ========== -->
|
---|
355 |
|
---|
356 | <A NAME="method_detail"><!-- --></A>
|
---|
357 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
358 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
359 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
360 | <B>Method Detail</B></FONT></TD>
|
---|
361 | </TR>
|
---|
362 | </TABLE>
|
---|
363 |
|
---|
364 | <A NAME="getHeaderId()"><!-- --></A><H3>
|
---|
365 | getHeaderId</H3>
|
---|
366 | <PRE>
|
---|
367 | public <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A> <B>getHeaderId</B>()</PRE>
|
---|
368 | <DL>
|
---|
369 | <DD>The Header-ID.
|
---|
370 | <P>
|
---|
371 | <DD><DL>
|
---|
372 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getHeaderId()">getHeaderId</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></CODE></DL>
|
---|
373 | </DD>
|
---|
374 | <DD><DL>
|
---|
375 | <DT><B>Since:</B></DT>
|
---|
376 | <DD>1.1</DD>
|
---|
377 | </DL>
|
---|
378 | </DD>
|
---|
379 | </DL>
|
---|
380 | <HR>
|
---|
381 |
|
---|
382 | <A NAME="getLocalFileDataLength()"><!-- --></A><H3>
|
---|
383 | getLocalFileDataLength</H3>
|
---|
384 | <PRE>
|
---|
385 | public <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A> <B>getLocalFileDataLength</B>()</PRE>
|
---|
386 | <DL>
|
---|
387 | <DD>Length of the extra field in the local file data - without
|
---|
388 | Header-ID or length specifier.
|
---|
389 | <P>
|
---|
390 | <DD><DL>
|
---|
391 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getLocalFileDataLength()">getLocalFileDataLength</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></CODE></DL>
|
---|
392 | </DD>
|
---|
393 | <DD><DL>
|
---|
394 | <DT><B>Since:</B></DT>
|
---|
395 | <DD>1.1</DD>
|
---|
396 | </DL>
|
---|
397 | </DD>
|
---|
398 | </DL>
|
---|
399 | <HR>
|
---|
400 |
|
---|
401 | <A NAME="getCentralDirectoryLength()"><!-- --></A><H3>
|
---|
402 | getCentralDirectoryLength</H3>
|
---|
403 | <PRE>
|
---|
404 | public <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A> <B>getCentralDirectoryLength</B>()</PRE>
|
---|
405 | <DL>
|
---|
406 | <DD>Delegate to local file data.
|
---|
407 | <P>
|
---|
408 | <DD><DL>
|
---|
409 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getCentralDirectoryLength()">getCentralDirectoryLength</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></CODE></DL>
|
---|
410 | </DD>
|
---|
411 | <DD><DL>
|
---|
412 | <DT><B>Since:</B></DT>
|
---|
413 | <DD>1.1</DD>
|
---|
414 | </DL>
|
---|
415 | </DD>
|
---|
416 | </DL>
|
---|
417 | <HR>
|
---|
418 |
|
---|
419 | <A NAME="getLocalFileDataData()"><!-- --></A><H3>
|
---|
420 | getLocalFileDataData</H3>
|
---|
421 | <PRE>
|
---|
422 | public byte[] <B>getLocalFileDataData</B>()</PRE>
|
---|
423 | <DL>
|
---|
424 | <DD>The actual data to put into local file data - without Header-ID
|
---|
425 | or length specifier.
|
---|
426 | <P>
|
---|
427 | <DD><DL>
|
---|
428 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getLocalFileDataData()">getLocalFileDataData</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></CODE></DL>
|
---|
429 | </DD>
|
---|
430 | <DD><DL>
|
---|
431 | <DT><B>Since:</B></DT>
|
---|
432 | <DD>1.1</DD>
|
---|
433 | </DL>
|
---|
434 | </DD>
|
---|
435 | </DL>
|
---|
436 | <HR>
|
---|
437 |
|
---|
438 | <A NAME="getCentralDirectoryData()"><!-- --></A><H3>
|
---|
439 | getCentralDirectoryData</H3>
|
---|
440 | <PRE>
|
---|
441 | public byte[] <B>getCentralDirectoryData</B>()</PRE>
|
---|
442 | <DL>
|
---|
443 | <DD>Delegate to local file data.
|
---|
444 | <P>
|
---|
445 | <DD><DL>
|
---|
446 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getCentralDirectoryData()">getCentralDirectoryData</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></CODE></DL>
|
---|
447 | </DD>
|
---|
448 | <DD><DL>
|
---|
449 | <DT><B>Since:</B></DT>
|
---|
450 | <DD>1.1</DD>
|
---|
451 | </DL>
|
---|
452 | </DD>
|
---|
453 | </DL>
|
---|
454 | <HR>
|
---|
455 |
|
---|
456 | <A NAME="setUserId(int)"><!-- --></A><H3>
|
---|
457 | setUserId</H3>
|
---|
458 | <PRE>
|
---|
459 | public void <B>setUserId</B>(int uid)</PRE>
|
---|
460 | <DL>
|
---|
461 | <DD>Set the user id.
|
---|
462 | <P>
|
---|
463 | <DD><DL>
|
---|
464 | </DL>
|
---|
465 | </DD>
|
---|
466 | <DD><DL>
|
---|
467 | <DT><B>Since:</B></DT>
|
---|
468 | <DD>1.1</DD>
|
---|
469 | </DL>
|
---|
470 | </DD>
|
---|
471 | </DL>
|
---|
472 | <HR>
|
---|
473 |
|
---|
474 | <A NAME="getUserId()"><!-- --></A><H3>
|
---|
475 | getUserId</H3>
|
---|
476 | <PRE>
|
---|
477 | public int <B>getUserId</B>()</PRE>
|
---|
478 | <DL>
|
---|
479 | <DD>Get the user id.
|
---|
480 | <P>
|
---|
481 | <DD><DL>
|
---|
482 | </DL>
|
---|
483 | </DD>
|
---|
484 | <DD><DL>
|
---|
485 | <DT><B>Since:</B></DT>
|
---|
486 | <DD>1.1</DD>
|
---|
487 | </DL>
|
---|
488 | </DD>
|
---|
489 | </DL>
|
---|
490 | <HR>
|
---|
491 |
|
---|
492 | <A NAME="setGroupId(int)"><!-- --></A><H3>
|
---|
493 | setGroupId</H3>
|
---|
494 | <PRE>
|
---|
495 | public void <B>setGroupId</B>(int gid)</PRE>
|
---|
496 | <DL>
|
---|
497 | <DD>Set the group id.
|
---|
498 | <P>
|
---|
499 | <DD><DL>
|
---|
500 | </DL>
|
---|
501 | </DD>
|
---|
502 | <DD><DL>
|
---|
503 | <DT><B>Since:</B></DT>
|
---|
504 | <DD>1.1</DD>
|
---|
505 | </DL>
|
---|
506 | </DD>
|
---|
507 | </DL>
|
---|
508 | <HR>
|
---|
509 |
|
---|
510 | <A NAME="getGroupId()"><!-- --></A><H3>
|
---|
511 | getGroupId</H3>
|
---|
512 | <PRE>
|
---|
513 | public int <B>getGroupId</B>()</PRE>
|
---|
514 | <DL>
|
---|
515 | <DD>Get the group id.
|
---|
516 | <P>
|
---|
517 | <DD><DL>
|
---|
518 | </DL>
|
---|
519 | </DD>
|
---|
520 | <DD><DL>
|
---|
521 | <DT><B>Since:</B></DT>
|
---|
522 | <DD>1.1</DD>
|
---|
523 | </DL>
|
---|
524 | </DD>
|
---|
525 | </DL>
|
---|
526 | <HR>
|
---|
527 |
|
---|
528 | <A NAME="setLinkedFile(java.lang.String)"><!-- --></A><H3>
|
---|
529 | setLinkedFile</H3>
|
---|
530 | <PRE>
|
---|
531 | public void <B>setLinkedFile</B>(java.lang.String name)</PRE>
|
---|
532 | <DL>
|
---|
533 | <DD>Indicate that this entry is a symbolic link to the given filename.
|
---|
534 | <P>
|
---|
535 | <DD><DL>
|
---|
536 | </DL>
|
---|
537 | </DD>
|
---|
538 | <DD><DL>
|
---|
539 | <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the file this entry links to, empty String
|
---|
540 | if it is not a symbolic link.<DT><B>Since:</B></DT>
|
---|
541 | <DD>1.1</DD>
|
---|
542 | </DL>
|
---|
543 | </DD>
|
---|
544 | </DL>
|
---|
545 | <HR>
|
---|
546 |
|
---|
547 | <A NAME="getLinkedFile()"><!-- --></A><H3>
|
---|
548 | getLinkedFile</H3>
|
---|
549 | <PRE>
|
---|
550 | public java.lang.String <B>getLinkedFile</B>()</PRE>
|
---|
551 | <DL>
|
---|
552 | <DD>Name of linked file
|
---|
553 | <P>
|
---|
554 | <DD><DL>
|
---|
555 | </DL>
|
---|
556 | </DD>
|
---|
557 | <DD><DL>
|
---|
558 |
|
---|
559 | <DT><B>Returns:</B><DD>name of the file this entry links to if it is a
|
---|
560 | symbolic link, the empty string otherwise.<DT><B>Since:</B></DT>
|
---|
561 | <DD>1.1</DD>
|
---|
562 | </DL>
|
---|
563 | </DD>
|
---|
564 | </DL>
|
---|
565 | <HR>
|
---|
566 |
|
---|
567 | <A NAME="isLink()"><!-- --></A><H3>
|
---|
568 | isLink</H3>
|
---|
569 | <PRE>
|
---|
570 | public boolean <B>isLink</B>()</PRE>
|
---|
571 | <DL>
|
---|
572 | <DD>Is this entry a symbolic link?
|
---|
573 | <P>
|
---|
574 | <DD><DL>
|
---|
575 | </DL>
|
---|
576 | </DD>
|
---|
577 | <DD><DL>
|
---|
578 | <DT><B>Since:</B></DT>
|
---|
579 | <DD>1.1</DD>
|
---|
580 | </DL>
|
---|
581 | </DD>
|
---|
582 | </DL>
|
---|
583 | <HR>
|
---|
584 |
|
---|
585 | <A NAME="setMode(int)"><!-- --></A><H3>
|
---|
586 | setMode</H3>
|
---|
587 | <PRE>
|
---|
588 | public void <B>setMode</B>(int mode)</PRE>
|
---|
589 | <DL>
|
---|
590 | <DD>File mode of this file.
|
---|
591 | <P>
|
---|
592 | <DD><DL>
|
---|
593 | </DL>
|
---|
594 | </DD>
|
---|
595 | <DD><DL>
|
---|
596 | <DT><B>Since:</B></DT>
|
---|
597 | <DD>1.1</DD>
|
---|
598 | </DL>
|
---|
599 | </DD>
|
---|
600 | </DL>
|
---|
601 | <HR>
|
---|
602 |
|
---|
603 | <A NAME="getMode()"><!-- --></A><H3>
|
---|
604 | getMode</H3>
|
---|
605 | <PRE>
|
---|
606 | public int <B>getMode</B>()</PRE>
|
---|
607 | <DL>
|
---|
608 | <DD>File mode of this file.
|
---|
609 | <P>
|
---|
610 | <DD><DL>
|
---|
611 | </DL>
|
---|
612 | </DD>
|
---|
613 | <DD><DL>
|
---|
614 | <DT><B>Since:</B></DT>
|
---|
615 | <DD>1.1</DD>
|
---|
616 | </DL>
|
---|
617 | </DD>
|
---|
618 | </DL>
|
---|
619 | <HR>
|
---|
620 |
|
---|
621 | <A NAME="setDirectory(boolean)"><!-- --></A><H3>
|
---|
622 | setDirectory</H3>
|
---|
623 | <PRE>
|
---|
624 | public void <B>setDirectory</B>(boolean dirFlag)</PRE>
|
---|
625 | <DL>
|
---|
626 | <DD>Indicate whether this entry is a directory.
|
---|
627 | <P>
|
---|
628 | <DD><DL>
|
---|
629 | </DL>
|
---|
630 | </DD>
|
---|
631 | <DD><DL>
|
---|
632 | <DT><B>Since:</B></DT>
|
---|
633 | <DD>1.1</DD>
|
---|
634 | </DL>
|
---|
635 | </DD>
|
---|
636 | </DL>
|
---|
637 | <HR>
|
---|
638 |
|
---|
639 | <A NAME="isDirectory()"><!-- --></A><H3>
|
---|
640 | isDirectory</H3>
|
---|
641 | <PRE>
|
---|
642 | public boolean <B>isDirectory</B>()</PRE>
|
---|
643 | <DL>
|
---|
644 | <DD>Is this entry a directory?
|
---|
645 | <P>
|
---|
646 | <DD><DL>
|
---|
647 | </DL>
|
---|
648 | </DD>
|
---|
649 | <DD><DL>
|
---|
650 | <DT><B>Since:</B></DT>
|
---|
651 | <DD>1.1</DD>
|
---|
652 | </DL>
|
---|
653 | </DD>
|
---|
654 | </DL>
|
---|
655 | <HR>
|
---|
656 |
|
---|
657 | <A NAME="parseFromLocalFileData(byte[], int, int)"><!-- --></A><H3>
|
---|
658 | parseFromLocalFileData</H3>
|
---|
659 | <PRE>
|
---|
660 | public void <B>parseFromLocalFileData</B>(byte[] data,
|
---|
661 | int offset,
|
---|
662 | int length)
|
---|
663 | throws java.util.zip.ZipException</PRE>
|
---|
664 | <DL>
|
---|
665 | <DD>Populate data from this array as if it was in local file data.
|
---|
666 | <P>
|
---|
667 | <DD><DL>
|
---|
668 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#parseFromLocalFileData(byte[], int, int)">parseFromLocalFileData</A></CODE> in interface <CODE><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html" title="interface in org.apache.tools.zip">ZipExtraField</A></CODE></DL>
|
---|
669 | </DD>
|
---|
670 | <DD><DL>
|
---|
671 |
|
---|
672 | <DT><B>Throws:</B>
|
---|
673 | <DD><CODE>java.util.zip.ZipException</CODE><DT><B>Since:</B></DT>
|
---|
674 | <DD>1.1</DD>
|
---|
675 | </DL>
|
---|
676 | </DD>
|
---|
677 | </DL>
|
---|
678 | <HR>
|
---|
679 |
|
---|
680 | <A NAME="getMode(int)"><!-- --></A><H3>
|
---|
681 | getMode</H3>
|
---|
682 | <PRE>
|
---|
683 | protected int <B>getMode</B>(int mode)</PRE>
|
---|
684 | <DL>
|
---|
685 | <DD>Get the file mode for given permissions with the correct file type.
|
---|
686 | <P>
|
---|
687 | <DD><DL>
|
---|
688 | </DL>
|
---|
689 | </DD>
|
---|
690 | <DD><DL>
|
---|
691 | <DT><B>Since:</B></DT>
|
---|
692 | <DD>1.1</DD>
|
---|
693 | </DL>
|
---|
694 | </DD>
|
---|
695 | </DL>
|
---|
696 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
697 | <HR>
|
---|
698 |
|
---|
699 |
|
---|
700 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
701 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
702 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
703 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
704 | <TR>
|
---|
705 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
706 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
707 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
708 | <TR ALIGN="center" VALIGN="top">
|
---|
709 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
710 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
711 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
712 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
713 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
714 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
715 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
716 | </TR>
|
---|
717 | </TABLE>
|
---|
718 | </TD>
|
---|
719 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
720 | </EM>
|
---|
721 | </TD>
|
---|
722 | </TR>
|
---|
723 |
|
---|
724 | <TR>
|
---|
725 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
726 | PREV CLASS
|
---|
727 | <A HREF="../../../../org/apache/tools/zip/ExtraFieldUtils.html" title="class in org.apache.tools.zip"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
728 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
729 | <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
730 | <A HREF="AsiExtraField.html" target="_top"><B>NO FRAMES</B></A>
|
---|
731 | <SCRIPT type="text/javascript">
|
---|
732 | <!--
|
---|
733 | if(window==top) {
|
---|
734 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
735 | }
|
---|
736 | //-->
|
---|
737 | </SCRIPT>
|
---|
738 | <NOSCRIPT>
|
---|
739 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
740 | </NOSCRIPT>
|
---|
741 |
|
---|
742 | </FONT></TD>
|
---|
743 | </TR>
|
---|
744 | <TR>
|
---|
745 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
746 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
747 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
748 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
749 | </TR>
|
---|
750 | </TABLE>
|
---|
751 | <A NAME="skip-navbar_bottom"></A>
|
---|
752 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
753 |
|
---|
754 | <HR>
|
---|
755 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
756 | </BODY>
|
---|
757 | </HTML>
|
---|