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

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

initial import of LiRK3

File size: 12.5 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:36 NZST 2007 -->
6<TITLE>
7ZipLong (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.zip.ZipLong 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="ZipLong (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/ZipFile.html" title="class in org.apache.tools.zip"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../org/apache/tools/zip/ZipOutputStream.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="ZipLong.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;FIELD&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 ZipLong</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.zip.ZipLong</B>
90</PRE>
91<DL>
92<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable</DD>
93</DL>
94<HR>
95<DL>
96<DT>public final class <B>ZipLong</B><DT>extends java.lang.Object<DT>implements java.lang.Cloneable</DL>
97
98<P>
99Utility class that represents a four byte integer with conversion
100 rules for the big endian byte order of ZIP files.
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<A NAME="constructor_summary"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118<TD COLSPAN=2><FONT SIZE="+2">
119<B>Constructor Summary</B></FONT></TD>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#ZipLong(byte[])">ZipLong</A></B>(byte[]&nbsp;bytes)</CODE>
123
124<BR>
125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create instance from bytes.</TD>
126</TR>
127<TR BGCOLOR="white" CLASS="TableRowColor">
128<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#ZipLong(byte[], int)">ZipLong</A></B>(byte[]&nbsp;bytes,
129 int&nbsp;offset)</CODE>
130
131<BR>
132&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create instance from the four bytes starting at offset.</TD>
133</TR>
134<TR BGCOLOR="white" CLASS="TableRowColor">
135<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#ZipLong(long)">ZipLong</A></B>(long&nbsp;value)</CODE>
136
137<BR>
138&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create instance from a number.</TD>
139</TR>
140</TABLE>
141&nbsp;
142<!-- ========== METHOD SUMMARY =========== -->
143
144<A NAME="method_summary"><!-- --></A>
145<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
146<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
147<TD COLSPAN=2><FONT SIZE="+2">
148<B>Method Summary</B></FONT></TD>
149</TR>
150<TR BGCOLOR="white" CLASS="TableRowColor">
151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152<CODE>&nbsp;boolean</CODE></FONT></TD>
153<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object&nbsp;o)</CODE>
154
155<BR>
156&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override to make two instances with same value equal.</TD>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160<CODE>&nbsp;byte[]</CODE></FONT></TD>
161<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#getBytes()">getBytes</A></B>()</CODE>
162
163<BR>
164&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get value as two bytes in big endian byte order.</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;long</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#getValue()">getValue</A></B>()</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get value as Java int.</TD>
173</TR>
174<TR BGCOLOR="white" CLASS="TableRowColor">
175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176<CODE>&nbsp;int</CODE></FONT></TD>
177<TD><CODE><B><A HREF="../../../../org/apache/tools/zip/ZipLong.html#hashCode()">hashCode</A></B>()</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Override to make two instances with same value equal.</TD>
181</TR>
182</TABLE>
183&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
184<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
185<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
186<TD><B>Methods inherited from class java.lang.Object</B></TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD><CODE>clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
190</TR>
191</TABLE>
192&nbsp;
193<P>
194
195<!-- ============ FIELD DETAIL =========== -->
196
197
198<!-- ========= CONSTRUCTOR DETAIL ======== -->
199
200<A NAME="constructor_detail"><!-- --></A>
201<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203<TD COLSPAN=1><FONT SIZE="+2">
204<B>Constructor Detail</B></FONT></TD>
205</TR>
206</TABLE>
207
208<A NAME="ZipLong(long)"><!-- --></A><H3>
209ZipLong</H3>
210<PRE>
211public <B>ZipLong</B>(long&nbsp;value)</PRE>
212<DL>
213<DD>Create instance from a number.
214<P>
215<DT><B>Since:</B></DT>
216 <DD>1.1</DD>
217</DL>
218<HR>
219
220<A NAME="ZipLong(byte[])"><!-- --></A><H3>
221ZipLong</H3>
222<PRE>
223public <B>ZipLong</B>(byte[]&nbsp;bytes)</PRE>
224<DL>
225<DD>Create instance from bytes.
226<P>
227<DT><B>Since:</B></DT>
228 <DD>1.1</DD>
229</DL>
230<HR>
231
232<A NAME="ZipLong(byte[], int)"><!-- --></A><H3>
233ZipLong</H3>
234<PRE>
235public <B>ZipLong</B>(byte[]&nbsp;bytes,
236 int&nbsp;offset)</PRE>
237<DL>
238<DD>Create instance from the four bytes starting at offset.
239<P>
240<DT><B>Since:</B></DT>
241 <DD>1.1</DD>
242</DL>
243
244<!-- ============ METHOD DETAIL ========== -->
245
246<A NAME="method_detail"><!-- --></A>
247<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
249<TD COLSPAN=1><FONT SIZE="+2">
250<B>Method Detail</B></FONT></TD>
251</TR>
252</TABLE>
253
254<A NAME="getBytes()"><!-- --></A><H3>
255getBytes</H3>
256<PRE>
257public byte[] <B>getBytes</B>()</PRE>
258<DL>
259<DD>Get value as two bytes in big endian byte order.
260<P>
261<DD><DL>
262</DL>
263</DD>
264<DD><DL>
265<DT><B>Since:</B></DT>
266 <DD>1.1</DD>
267</DL>
268</DD>
269</DL>
270<HR>
271
272<A NAME="getValue()"><!-- --></A><H3>
273getValue</H3>
274<PRE>
275public long <B>getValue</B>()</PRE>
276<DL>
277<DD>Get value as Java int.
278<P>
279<DD><DL>
280</DL>
281</DD>
282<DD><DL>
283<DT><B>Since:</B></DT>
284 <DD>1.1</DD>
285</DL>
286</DD>
287</DL>
288<HR>
289
290<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
291equals</H3>
292<PRE>
293public boolean <B>equals</B>(java.lang.Object&nbsp;o)</PRE>
294<DL>
295<DD>Override to make two instances with same value equal.
296<P>
297<DD><DL>
298</DL>
299</DD>
300<DD><DL>
301<DT><B>Since:</B></DT>
302 <DD>1.1</DD>
303</DL>
304</DD>
305</DL>
306<HR>
307
308<A NAME="hashCode()"><!-- --></A><H3>
309hashCode</H3>
310<PRE>
311public int <B>hashCode</B>()</PRE>
312<DL>
313<DD>Override to make two instances with same value equal.
314<P>
315<DD><DL>
316</DL>
317</DD>
318<DD><DL>
319<DT><B>Since:</B></DT>
320 <DD>1.1</DD>
321</DL>
322</DD>
323</DL>
324<!-- ========= END OF CLASS DATA ========= -->
325<HR>
326
327
328<!-- ======= START OF BOTTOM NAVBAR ====== -->
329<A NAME="navbar_bottom"><!-- --></A>
330<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
331<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
332<TR>
333<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
334<A NAME="navbar_bottom_firstrow"><!-- --></A>
335<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
336 <TR ALIGN="center" VALIGN="top">
337 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
338 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
339 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
340 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
341 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
342 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
343 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
344 </TR>
345</TABLE>
346</TD>
347<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
348</EM>
349</TD>
350</TR>
351
352<TR>
353<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
354&nbsp;<A HREF="../../../../org/apache/tools/zip/ZipFile.html" title="class in org.apache.tools.zip"><B>PREV CLASS</B></A>&nbsp;
355&nbsp;<A HREF="../../../../org/apache/tools/zip/ZipOutputStream.html" title="class in org.apache.tools.zip"><B>NEXT CLASS</B></A></FONT></TD>
356<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
357 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
358&nbsp;<A HREF="ZipLong.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
359&nbsp;<SCRIPT type="text/javascript">
360 <!--
361 if(window==top) {
362 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
363 }
364 //-->
365</SCRIPT>
366<NOSCRIPT>
367 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
368</NOSCRIPT>
369
370</FONT></TD>
371</TR>
372<TR>
373<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
374 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
375<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
376DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
377</TR>
378</TABLE>
379<A NAME="skip-navbar_bottom"></A>
380<!-- ======== END OF BOTTOM NAVBAR ======= -->
381
382<HR>
383Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
384</BODY>
385</HTML>
Note: See TracBrowser for help on using the repository browser.