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 | ZipExtraField (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.zip.ZipExtraField interface">
|
---|
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="ZipExtraField (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 | <A HREF="../../../../org/apache/tools/zip/UnixStat.html" title="interface in org.apache.tools.zip"><B>PREV CLASS</B></A>
|
---|
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="ZipExtraField.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | CONSTR | <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 | Interface ZipExtraField</H2>
|
---|
87 | <DL>
|
---|
88 | <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/tools/zip/AsiExtraField.html" title="class in org.apache.tools.zip">AsiExtraField</A>, <A HREF="../../../../org/apache/tools/zip/JarMarker.html" title="class in org.apache.tools.zip">JarMarker</A>, <A HREF="../../../../org/apache/tools/zip/UnrecognizedExtraField.html" title="class in org.apache.tools.zip">UnrecognizedExtraField</A></DD>
|
---|
89 | </DL>
|
---|
90 | <HR>
|
---|
91 | <DL>
|
---|
92 | <DT>public interface <B>ZipExtraField</B></DL>
|
---|
93 |
|
---|
94 | <P>
|
---|
95 | General format of extra field data.
|
---|
96 |
|
---|
97 | <p>Extra fields usually appear twice per file, once in the local
|
---|
98 | file data and once in the central directory. Usually they are the
|
---|
99 | same, but they don't have to be. <CODE>java.util.zip.ZipOutputStream</CODE> will
|
---|
100 | only use the local file data in both places.</p>
|
---|
101 | <P>
|
---|
102 |
|
---|
103 | <P>
|
---|
104 | <HR>
|
---|
105 |
|
---|
106 | <P>
|
---|
107 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
108 |
|
---|
109 |
|
---|
110 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
111 |
|
---|
112 |
|
---|
113 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
114 |
|
---|
115 |
|
---|
116 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
117 |
|
---|
118 | <A NAME="method_summary"><!-- --></A>
|
---|
119 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
120 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
121 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
122 | <B>Method Summary</B></FONT></TD>
|
---|
123 | </TR>
|
---|
124 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
125 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
126 | <CODE> byte[]</CODE></FONT></TD>
|
---|
127 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getCentralDirectoryData()">getCentralDirectoryData</A></B>()</CODE>
|
---|
128 |
|
---|
129 | <BR>
|
---|
130 | The actual data to put central directory - without Header-ID or
|
---|
131 | length specifier.</TD>
|
---|
132 | </TR>
|
---|
133 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
134 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
135 | <CODE> <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A></CODE></FONT></TD>
|
---|
136 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getCentralDirectoryLength()">getCentralDirectoryLength</A></B>()</CODE>
|
---|
137 |
|
---|
138 | <BR>
|
---|
139 | Length of the extra field in the central directory - without
|
---|
140 | Header-ID or length specifier.</TD>
|
---|
141 | </TR>
|
---|
142 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
143 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
144 | <CODE> <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A></CODE></FONT></TD>
|
---|
145 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getHeaderId()">getHeaderId</A></B>()</CODE>
|
---|
146 |
|
---|
147 | <BR>
|
---|
148 | The Header-ID.</TD>
|
---|
149 | </TR>
|
---|
150 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
151 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
152 | <CODE> byte[]</CODE></FONT></TD>
|
---|
153 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getLocalFileDataData()">getLocalFileDataData</A></B>()</CODE>
|
---|
154 |
|
---|
155 | <BR>
|
---|
156 | The actual data to put into local file data - without Header-ID
|
---|
157 | or length specifier.</TD>
|
---|
158 | </TR>
|
---|
159 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
160 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
161 | <CODE> <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A></CODE></FONT></TD>
|
---|
162 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#getLocalFileDataLength()">getLocalFileDataLength</A></B>()</CODE>
|
---|
163 |
|
---|
164 | <BR>
|
---|
165 | Length of the extra field in the local file data - without
|
---|
166 | Header-ID or length specifier.</TD>
|
---|
167 | </TR>
|
---|
168 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
169 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
170 | <CODE> void</CODE></FONT></TD>
|
---|
171 | <TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipExtraField.html#parseFromLocalFileData(byte[], int, int)">parseFromLocalFileData</A></B>(byte[] data,
|
---|
172 | int offset,
|
---|
173 | int length)</CODE>
|
---|
174 |
|
---|
175 | <BR>
|
---|
176 | Populate data from this array as if it was in local file data.</TD>
|
---|
177 | </TR>
|
---|
178 | </TABLE>
|
---|
179 |
|
---|
180 | <P>
|
---|
181 |
|
---|
182 | <!-- ============ FIELD DETAIL =========== -->
|
---|
183 |
|
---|
184 |
|
---|
185 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
186 |
|
---|
187 |
|
---|
188 | <!-- ============ METHOD DETAIL ========== -->
|
---|
189 |
|
---|
190 | <A NAME="method_detail"><!-- --></A>
|
---|
191 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
192 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
193 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
194 | <B>Method Detail</B></FONT></TD>
|
---|
195 | </TR>
|
---|
196 | </TABLE>
|
---|
197 |
|
---|
198 | <A NAME="getHeaderId()"><!-- --></A><H3>
|
---|
199 | getHeaderId</H3>
|
---|
200 | <PRE>
|
---|
201 | public <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A> <B>getHeaderId</B>()</PRE>
|
---|
202 | <DL>
|
---|
203 | <DD>The Header-ID.
|
---|
204 | <P>
|
---|
205 | <DD><DL>
|
---|
206 | <DT><B>Since:</B></DT>
|
---|
207 | <DD>1.1</DD>
|
---|
208 | </DL>
|
---|
209 | </DD>
|
---|
210 | </DL>
|
---|
211 | <HR>
|
---|
212 |
|
---|
213 | <A NAME="getLocalFileDataLength()"><!-- --></A><H3>
|
---|
214 | getLocalFileDataLength</H3>
|
---|
215 | <PRE>
|
---|
216 | public <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A> <B>getLocalFileDataLength</B>()</PRE>
|
---|
217 | <DL>
|
---|
218 | <DD>Length of the extra field in the local file data - without
|
---|
219 | Header-ID or length specifier.
|
---|
220 | <P>
|
---|
221 | <DD><DL>
|
---|
222 | <DT><B>Since:</B></DT>
|
---|
223 | <DD>1.1</DD>
|
---|
224 | </DL>
|
---|
225 | </DD>
|
---|
226 | </DL>
|
---|
227 | <HR>
|
---|
228 |
|
---|
229 | <A NAME="getCentralDirectoryLength()"><!-- --></A><H3>
|
---|
230 | getCentralDirectoryLength</H3>
|
---|
231 | <PRE>
|
---|
232 | public <A HREF="../../../../org/apache/tools/zip/ZipShort.html" title="class in org.apache.tools.zip">ZipShort</A> <B>getCentralDirectoryLength</B>()</PRE>
|
---|
233 | <DL>
|
---|
234 | <DD>Length of the extra field in the central directory - without
|
---|
235 | Header-ID or length specifier.
|
---|
236 | <P>
|
---|
237 | <DD><DL>
|
---|
238 | <DT><B>Since:</B></DT>
|
---|
239 | <DD>1.1</DD>
|
---|
240 | </DL>
|
---|
241 | </DD>
|
---|
242 | </DL>
|
---|
243 | <HR>
|
---|
244 |
|
---|
245 | <A NAME="getLocalFileDataData()"><!-- --></A><H3>
|
---|
246 | getLocalFileDataData</H3>
|
---|
247 | <PRE>
|
---|
248 | public byte[] <B>getLocalFileDataData</B>()</PRE>
|
---|
249 | <DL>
|
---|
250 | <DD>The actual data to put into local file data - without Header-ID
|
---|
251 | or length specifier.
|
---|
252 | <P>
|
---|
253 | <DD><DL>
|
---|
254 | <DT><B>Since:</B></DT>
|
---|
255 | <DD>1.1</DD>
|
---|
256 | </DL>
|
---|
257 | </DD>
|
---|
258 | </DL>
|
---|
259 | <HR>
|
---|
260 |
|
---|
261 | <A NAME="getCentralDirectoryData()"><!-- --></A><H3>
|
---|
262 | getCentralDirectoryData</H3>
|
---|
263 | <PRE>
|
---|
264 | public byte[] <B>getCentralDirectoryData</B>()</PRE>
|
---|
265 | <DL>
|
---|
266 | <DD>The actual data to put central directory - without Header-ID or
|
---|
267 | length specifier.
|
---|
268 | <P>
|
---|
269 | <DD><DL>
|
---|
270 | <DT><B>Since:</B></DT>
|
---|
271 | <DD>1.1</DD>
|
---|
272 | </DL>
|
---|
273 | </DD>
|
---|
274 | </DL>
|
---|
275 | <HR>
|
---|
276 |
|
---|
277 | <A NAME="parseFromLocalFileData(byte[], int, int)"><!-- --></A><H3>
|
---|
278 | parseFromLocalFileData</H3>
|
---|
279 | <PRE>
|
---|
280 | public void <B>parseFromLocalFileData</B>(byte[] data,
|
---|
281 | int offset,
|
---|
282 | int length)
|
---|
283 | throws java.util.zip.ZipException</PRE>
|
---|
284 | <DL>
|
---|
285 | <DD>Populate data from this array as if it was in local file data.
|
---|
286 | <P>
|
---|
287 | <DD><DL>
|
---|
288 |
|
---|
289 | <DT><B>Throws:</B>
|
---|
290 | <DD><CODE>java.util.zip.ZipException</CODE><DT><B>Since:</B></DT>
|
---|
291 | <DD>1.1</DD>
|
---|
292 | </DL>
|
---|
293 | </DD>
|
---|
294 | </DL>
|
---|
295 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
296 | <HR>
|
---|
297 |
|
---|
298 |
|
---|
299 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
300 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
301 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
302 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
303 | <TR>
|
---|
304 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
305 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
306 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
307 | <TR ALIGN="center" VALIGN="top">
|
---|
308 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
309 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
310 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
311 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
312 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
313 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
314 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
315 | </TR>
|
---|
316 | </TABLE>
|
---|
317 | </TD>
|
---|
318 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
319 | </EM>
|
---|
320 | </TD>
|
---|
321 | </TR>
|
---|
322 |
|
---|
323 | <TR>
|
---|
324 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
325 | <A HREF="../../../../org/apache/tools/zip/UnixStat.html" title="interface in org.apache.tools.zip"><B>PREV CLASS</B></A>
|
---|
326 | NEXT CLASS</FONT></TD>
|
---|
327 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
328 | <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
329 | <A HREF="ZipExtraField.html" target="_top"><B>NO FRAMES</B></A>
|
---|
330 | <SCRIPT type="text/javascript">
|
---|
331 | <!--
|
---|
332 | if(window==top) {
|
---|
333 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
334 | }
|
---|
335 | //-->
|
---|
336 | </SCRIPT>
|
---|
337 | <NOSCRIPT>
|
---|
338 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
339 | </NOSCRIPT>
|
---|
340 |
|
---|
341 | </FONT></TD>
|
---|
342 | </TR>
|
---|
343 | <TR>
|
---|
344 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
345 | SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
346 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
347 | DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
348 | </TR>
|
---|
349 | </TABLE>
|
---|
350 | <A NAME="skip-navbar_bottom"></A>
|
---|
351 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
352 |
|
---|
353 | <HR>
|
---|
354 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
355 | </BODY>
|
---|
356 | </HTML>
|
---|