ZipLong.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="de">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <title>ZipLong (Apache Commons Compress 1.13 API)</title>
  7. <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
  8. </head>
  9. <body>
  10. <script type="text/javascript"><!--
  11. try {
  12. if (location.href.indexOf('is-external=true') == -1) {
  13. parent.document.title="ZipLong (Apache Commons Compress 1.13 API)";
  14. }
  15. }
  16. catch(err) {
  17. }
  18. //-->
  19. </script>
  20. <noscript>
  21. <div>JavaScript is disabled on your browser.</div>
  22. </noscript>
  23. <!-- ========= START OF TOP NAVBAR ======= -->
  24. <div class="topNav"><a name="navbar_top">
  25. <!-- -->
  26. </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
  27. <!-- -->
  28. </a>
  29. <ul class="navList" title="Navigation">
  30. <li><a href="../../../../../../overview-summary.html">Overview</a></li>
  31. <li><a href="package-summary.html">Package</a></li>
  32. <li class="navBarCell1Rev">Class</li>
  33. <li><a href="class-use/ZipLong.html">Use</a></li>
  34. <li><a href="package-tree.html">Tree</a></li>
  35. <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
  36. <li><a href="../../../../../../index-all.html">Index</a></li>
  37. <li><a href="../../../../../../help-doc.html">Help</a></li>
  38. </ul>
  39. </div>
  40. <div class="subNav">
  41. <ul class="navList">
  42. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
  43. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipMethod.html" title="enum in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
  44. </ul>
  45. <ul class="navList">
  46. <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/ZipLong.html" target="_top">Frames</a></li>
  47. <li><a href="ZipLong.html" target="_top">No Frames</a></li>
  48. </ul>
  49. <ul class="navList" id="allclasses_navbar_top">
  50. <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
  51. </ul>
  52. <div>
  53. <script type="text/javascript"><!--
  54. allClassesLink = document.getElementById("allclasses_navbar_top");
  55. if(window==top) {
  56. allClassesLink.style.display = "block";
  57. }
  58. else {
  59. allClassesLink.style.display = "none";
  60. }
  61. //-->
  62. </script>
  63. </div>
  64. <div>
  65. <ul class="subNavList">
  66. <li>Summary:&nbsp;</li>
  67. <li>Nested&nbsp;|&nbsp;</li>
  68. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  69. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  70. <li><a href="#method_summary">Method</a></li>
  71. </ul>
  72. <ul class="subNavList">
  73. <li>Detail:&nbsp;</li>
  74. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  75. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  76. <li><a href="#method_detail">Method</a></li>
  77. </ul>
  78. </div>
  79. <a name="skip-navbar_top">
  80. <!-- -->
  81. </a></div>
  82. <!-- ========= END OF TOP NAVBAR ========= -->
  83. <!-- ======== START OF CLASS DATA ======== -->
  84. <div class="header">
  85. <div class="subTitle">org.apache.commons.compress.archivers.zip</div>
  86. <h2 title="Class ZipLong" class="title">Class ZipLong</h2>
  87. </div>
  88. <div class="contentContainer">
  89. <ul class="inheritance">
  90. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
  91. <li>
  92. <ul class="inheritance">
  93. <li>org.apache.commons.compress.archivers.zip.ZipLong</li>
  94. </ul>
  95. </li>
  96. </ul>
  97. <div class="description">
  98. <ul class="blockList">
  99. <li class="blockList">
  100. <dl>
  101. <dt>All Implemented Interfaces:</dt>
  102. <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></dd>
  103. </dl>
  104. <hr>
  105. <br>
  106. <pre>public final class <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.30">ZipLong</a>
  107. extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
  108. implements <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre>
  109. <div class="block">Utility class that represents a four byte integer with conversion
  110. rules for the big endian byte order of ZIP files.</div>
  111. <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../serialized-form.html#org.apache.commons.compress.archivers.zip.ZipLong">Serialized Form</a></dd><dt><span class="strong">This class is immutable</span></dt>
  112. <dd></dd></dl>
  113. </li>
  114. </ul>
  115. </div>
  116. <div class="summary">
  117. <ul class="blockList">
  118. <li class="blockList">
  119. <!-- =========== FIELD SUMMARY =========== -->
  120. <ul class="blockList">
  121. <li class="blockList"><a name="field_summary">
  122. <!-- -->
  123. </a>
  124. <h3>Field Summary</h3>
  125. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  126. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  127. <tr>
  128. <th class="colFirst" scope="col">Modifier and Type</th>
  129. <th class="colLast" scope="col">Field and Description</th>
  130. </tr>
  131. <tr class="altColor">
  132. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  133. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#AED_SIG">AED_SIG</a></strong></code>
  134. <div class="block">Archive extra data record signature.</div>
  135. </td>
  136. </tr>
  137. <tr class="rowColor">
  138. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  139. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#CFH_SIG">CFH_SIG</a></strong></code>
  140. <div class="block">Central File Header Signature</div>
  141. </td>
  142. </tr>
  143. <tr class="altColor">
  144. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  145. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#DD_SIG">DD_SIG</a></strong></code>
  146. <div class="block">Data Descriptor signature.</div>
  147. </td>
  148. </tr>
  149. <tr class="rowColor">
  150. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  151. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#LFH_SIG">LFH_SIG</a></strong></code>
  152. <div class="block">Local File Header Signature</div>
  153. </td>
  154. </tr>
  155. <tr class="altColor">
  156. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  157. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#SINGLE_SEGMENT_SPLIT_MARKER">SINGLE_SEGMENT_SPLIT_MARKER</a></strong></code>
  158. <div class="block">Marks ZIP archives that were supposed to be split or spanned
  159. but only needed a single segment in then end (so are actually
  160. neither split nor spanned).</div>
  161. </td>
  162. </tr>
  163. </table>
  164. </li>
  165. </ul>
  166. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  167. <ul class="blockList">
  168. <li class="blockList"><a name="constructor_summary">
  169. <!-- -->
  170. </a>
  171. <h3>Constructor Summary</h3>
  172. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  173. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  174. <tr>
  175. <th class="colOne" scope="col">Constructor and Description</th>
  176. </tr>
  177. <tr class="altColor">
  178. <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#ZipLong(byte[])">ZipLong</a></strong>(byte[]&nbsp;bytes)</code>
  179. <div class="block">Create instance from bytes.</div>
  180. </td>
  181. </tr>
  182. <tr class="rowColor">
  183. <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#ZipLong(byte[],%20int)">ZipLong</a></strong>(byte[]&nbsp;bytes,
  184. int&nbsp;offset)</code>
  185. <div class="block">Create instance from the four bytes starting at offset.</div>
  186. </td>
  187. </tr>
  188. <tr class="altColor">
  189. <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#ZipLong(long)">ZipLong</a></strong>(long&nbsp;value)</code>
  190. <div class="block">Create instance from a number.</div>
  191. </td>
  192. </tr>
  193. </table>
  194. </li>
  195. </ul>
  196. <!-- ========== METHOD SUMMARY =========== -->
  197. <ul class="blockList">
  198. <li class="blockList"><a name="method_summary">
  199. <!-- -->
  200. </a>
  201. <h3>Method Summary</h3>
  202. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  203. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  204. <tr>
  205. <th class="colFirst" scope="col">Modifier and Type</th>
  206. <th class="colLast" scope="col">Method and Description</th>
  207. </tr>
  208. <tr class="altColor">
  209. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
  210. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#clone()">clone</a></strong>()</code>&nbsp;</td>
  211. </tr>
  212. <tr class="rowColor">
  213. <td class="colFirst"><code>boolean</code></td>
  214. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</code>
  215. <div class="block">Override to make two instances with same value equal.</div>
  216. </td>
  217. </tr>
  218. <tr class="altColor">
  219. <td class="colFirst"><code>byte[]</code></td>
  220. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#getBytes()">getBytes</a></strong>()</code>
  221. <div class="block">Get value as four bytes in big endian byte order.</div>
  222. </td>
  223. </tr>
  224. <tr class="rowColor">
  225. <td class="colFirst"><code>static byte[]</code></td>
  226. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#getBytes(long)">getBytes</a></strong>(long&nbsp;value)</code>
  227. <div class="block">Get value as four bytes in big endian byte order.</div>
  228. </td>
  229. </tr>
  230. <tr class="altColor">
  231. <td class="colFirst"><code>long</code></td>
  232. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#getValue()">getValue</a></strong>()</code>
  233. <div class="block">Get value as Java long.</div>
  234. </td>
  235. </tr>
  236. <tr class="rowColor">
  237. <td class="colFirst"><code>static long</code></td>
  238. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#getValue(byte[])">getValue</a></strong>(byte[]&nbsp;bytes)</code>
  239. <div class="block">Helper method to get the value as a Java long from a four-byte array</div>
  240. </td>
  241. </tr>
  242. <tr class="altColor">
  243. <td class="colFirst"><code>static long</code></td>
  244. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#getValue(byte[],%20int)">getValue</a></strong>(byte[]&nbsp;bytes,
  245. int&nbsp;offset)</code>
  246. <div class="block">Helper method to get the value as a Java long from four bytes starting at given array offset</div>
  247. </td>
  248. </tr>
  249. <tr class="rowColor">
  250. <td class="colFirst"><code>int</code></td>
  251. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#hashCode()">hashCode</a></strong>()</code>
  252. <div class="block">Override to make two instances with same value equal.</div>
  253. </td>
  254. </tr>
  255. <tr class="altColor">
  256. <td class="colFirst"><code>void</code></td>
  257. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#putLong(byte[],%20int)">putLong</a></strong>(byte[]&nbsp;buf,
  258. int&nbsp;offset)</code>&nbsp;</td>
  259. </tr>
  260. <tr class="rowColor">
  261. <td class="colFirst"><code>static void</code></td>
  262. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#putLong(long,%20byte[],%20int)">putLong</a></strong>(long&nbsp;value,
  263. byte[]&nbsp;buf,
  264. int&nbsp;offset)</code>
  265. <div class="block">put the value as four bytes in big endian byte order.</div>
  266. </td>
  267. </tr>
  268. <tr class="altColor">
  269. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
  270. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html#toString()">toString</a></strong>()</code>&nbsp;</td>
  271. </tr>
  272. </table>
  273. <ul class="blockList">
  274. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  275. <!-- -->
  276. </a>
  277. <h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
  278. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
  279. </ul>
  280. </li>
  281. </ul>
  282. </li>
  283. </ul>
  284. </div>
  285. <div class="details">
  286. <ul class="blockList">
  287. <li class="blockList">
  288. <!-- ============ FIELD DETAIL =========== -->
  289. <ul class="blockList">
  290. <li class="blockList"><a name="field_detail">
  291. <!-- -->
  292. </a>
  293. <h3>Field Detail</h3>
  294. <a name="CFH_SIG">
  295. <!-- -->
  296. </a>
  297. <ul class="blockList">
  298. <li class="blockList">
  299. <h4>CFH_SIG</h4>
  300. <pre>public static final&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.50">CFH_SIG</a></pre>
  301. <div class="block">Central File Header Signature</div>
  302. </li>
  303. </ul>
  304. <a name="LFH_SIG">
  305. <!-- -->
  306. </a>
  307. <ul class="blockList">
  308. <li class="blockList">
  309. <h4>LFH_SIG</h4>
  310. <pre>public static final&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.53">LFH_SIG</a></pre>
  311. <div class="block">Local File Header Signature</div>
  312. </li>
  313. </ul>
  314. <a name="DD_SIG">
  315. <!-- -->
  316. </a>
  317. <ul class="blockList">
  318. <li class="blockList">
  319. <h4>DD_SIG</h4>
  320. <pre>public static final&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.63">DD_SIG</a></pre>
  321. <div class="block">Data Descriptor signature.
  322. <p>Actually, PKWARE uses this as marker for split/spanned
  323. archives and other archivers have started to use it as Data
  324. Descriptor signature (as well).</p></div>
  325. <dl><dt><span class="strong">Since:</span></dt>
  326. <dd>1.1</dd></dl>
  327. </li>
  328. </ul>
  329. <a name="SINGLE_SEGMENT_SPLIT_MARKER">
  330. <!-- -->
  331. </a>
  332. <ul class="blockList">
  333. <li class="blockList">
  334. <h4>SINGLE_SEGMENT_SPLIT_MARKER</h4>
  335. <pre>public static final&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.80">SINGLE_SEGMENT_SPLIT_MARKER</a></pre>
  336. <div class="block">Marks ZIP archives that were supposed to be split or spanned
  337. but only needed a single segment in then end (so are actually
  338. neither split nor spanned).
  339. <p>This is the "PK00" prefix found in some archives.</p></div>
  340. <dl><dt><span class="strong">Since:</span></dt>
  341. <dd>1.5</dd></dl>
  342. </li>
  343. </ul>
  344. <a name="AED_SIG">
  345. <!-- -->
  346. </a>
  347. <ul class="blockListLast">
  348. <li class="blockList">
  349. <h4>AED_SIG</h4>
  350. <pre>public static final&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a> <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.87">AED_SIG</a></pre>
  351. <div class="block">Archive extra data record signature.</div>
  352. <dl><dt><span class="strong">Since:</span></dt>
  353. <dd>1.5</dd></dl>
  354. </li>
  355. </ul>
  356. </li>
  357. </ul>
  358. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  359. <ul class="blockList">
  360. <li class="blockList"><a name="constructor_detail">
  361. <!-- -->
  362. </a>
  363. <h3>Constructor Detail</h3>
  364. <a name="ZipLong(long)">
  365. <!-- -->
  366. </a>
  367. <ul class="blockList">
  368. <li class="blockList">
  369. <h4>ZipLong</h4>
  370. <pre>public&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.93">ZipLong</a>(long&nbsp;value)</pre>
  371. <div class="block">Create instance from a number.</div>
  372. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the long to store as a ZipLong</dd></dl>
  373. </li>
  374. </ul>
  375. <a name="ZipLong(byte[])">
  376. <!-- -->
  377. </a>
  378. <ul class="blockList">
  379. <li class="blockList">
  380. <h4>ZipLong</h4>
  381. <pre>public&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.101">ZipLong</a>(byte[]&nbsp;bytes)</pre>
  382. <div class="block">Create instance from bytes.</div>
  383. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the bytes to store as a ZipLong</dd></dl>
  384. </li>
  385. </ul>
  386. <a name="ZipLong(byte[], int)">
  387. <!-- -->
  388. </a>
  389. <ul class="blockListLast">
  390. <li class="blockList">
  391. <h4>ZipLong</h4>
  392. <pre>public&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.110">ZipLong</a>(byte[]&nbsp;bytes,
  393. int&nbsp;offset)</pre>
  394. <div class="block">Create instance from the four bytes starting at offset.</div>
  395. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the bytes to store as a ZipLong</dd><dd><code>offset</code> - the offset to start</dd></dl>
  396. </li>
  397. </ul>
  398. </li>
  399. </ul>
  400. <!-- ============ METHOD DETAIL ========== -->
  401. <ul class="blockList">
  402. <li class="blockList"><a name="method_detail">
  403. <!-- -->
  404. </a>
  405. <h3>Method Detail</h3>
  406. <a name="getBytes()">
  407. <!-- -->
  408. </a>
  409. <ul class="blockList">
  410. <li class="blockList">
  411. <h4>getBytes</h4>
  412. <pre>public&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.118">getBytes</a>()</pre>
  413. <div class="block">Get value as four bytes in big endian byte order.</div>
  414. <dl><dt><span class="strong">Returns:</span></dt><dd>value as four bytes in big endian order</dd></dl>
  415. </li>
  416. </ul>
  417. <a name="getValue()">
  418. <!-- -->
  419. </a>
  420. <ul class="blockList">
  421. <li class="blockList">
  422. <h4>getValue</h4>
  423. <pre>public&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.126">getValue</a>()</pre>
  424. <div class="block">Get value as Java long.</div>
  425. <dl><dt><span class="strong">Returns:</span></dt><dd>value as a long</dd></dl>
  426. </li>
  427. </ul>
  428. <a name="getBytes(long)">
  429. <!-- -->
  430. </a>
  431. <ul class="blockList">
  432. <li class="blockList">
  433. <h4>getBytes</h4>
  434. <pre>public static&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.135">getBytes</a>(long&nbsp;value)</pre>
  435. <div class="block">Get value as four bytes in big endian byte order.</div>
  436. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the value to convert</dd>
  437. <dt><span class="strong">Returns:</span></dt><dd>value as four bytes in big endian byte order</dd></dl>
  438. </li>
  439. </ul>
  440. <a name="putLong(long, byte[], int)">
  441. <!-- -->
  442. </a>
  443. <ul class="blockList">
  444. <li class="blockList">
  445. <h4>putLong</h4>
  446. <pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.150">putLong</a>(long&nbsp;value,
  447. byte[]&nbsp;buf,
  448. int&nbsp;offset)</pre>
  449. <div class="block">put the value as four bytes in big endian byte order.</div>
  450. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the Java long to convert to bytes</dd><dd><code>buf</code> - the output buffer</dd><dd><code>offset</code> - The offset within the output buffer of the first byte to be written.
  451. must be non-negative and no larger than <tt>buf.length-4</tt></dd></dl>
  452. </li>
  453. </ul>
  454. <a name="putLong(byte[], int)">
  455. <!-- -->
  456. </a>
  457. <ul class="blockList">
  458. <li class="blockList">
  459. <h4>putLong</h4>
  460. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.157">putLong</a>(byte[]&nbsp;buf,
  461. int&nbsp;offset)</pre>
  462. </li>
  463. </ul>
  464. <a name="getValue(byte[], int)">
  465. <!-- -->
  466. </a>
  467. <ul class="blockList">
  468. <li class="blockList">
  469. <h4>getValue</h4>
  470. <pre>public static&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.167">getValue</a>(byte[]&nbsp;bytes,
  471. int&nbsp;offset)</pre>
  472. <div class="block">Helper method to get the value as a Java long from four bytes starting at given array offset</div>
  473. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the array of bytes</dd><dd><code>offset</code> - the offset to start</dd>
  474. <dt><span class="strong">Returns:</span></dt><dd>the corresponding Java long value</dd></dl>
  475. </li>
  476. </ul>
  477. <a name="getValue(byte[])">
  478. <!-- -->
  479. </a>
  480. <ul class="blockList">
  481. <li class="blockList">
  482. <h4>getValue</h4>
  483. <pre>public static&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.180">getValue</a>(byte[]&nbsp;bytes)</pre>
  484. <div class="block">Helper method to get the value as a Java long from a four-byte array</div>
  485. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - the array of bytes</dd>
  486. <dt><span class="strong">Returns:</span></dt><dd>the corresponding Java long value</dd></dl>
  487. </li>
  488. </ul>
  489. <a name="equals(java.lang.Object)">
  490. <!-- -->
  491. </a>
  492. <ul class="blockList">
  493. <li class="blockList">
  494. <h4>equals</h4>
  495. <pre>public&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.190">equals</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</pre>
  496. <div class="block">Override to make two instances with same value equal.</div>
  497. <dl>
  498. <dt><strong>Overrides:</strong></dt>
  499. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
  500. <dt><span class="strong">Parameters:</span></dt><dd><code>o</code> - an object to compare</dd>
  501. <dt><span class="strong">Returns:</span></dt><dd>true if the objects are equal</dd></dl>
  502. </li>
  503. </ul>
  504. <a name="hashCode()">
  505. <!-- -->
  506. </a>
  507. <ul class="blockList">
  508. <li class="blockList">
  509. <h4>hashCode</h4>
  510. <pre>public&nbsp;int&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.202">hashCode</a>()</pre>
  511. <div class="block">Override to make two instances with same value equal.</div>
  512. <dl>
  513. <dt><strong>Overrides:</strong></dt>
  514. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
  515. <dt><span class="strong">Returns:</span></dt><dd>the value stored in the ZipLong</dd></dl>
  516. </li>
  517. </ul>
  518. <a name="clone()">
  519. <!-- -->
  520. </a>
  521. <ul class="blockList">
  522. <li class="blockList">
  523. <h4>clone</h4>
  524. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.207">clone</a>()</pre>
  525. <dl>
  526. <dt><strong>Overrides:</strong></dt>
  527. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
  528. </dl>
  529. </li>
  530. </ul>
  531. <a name="toString()">
  532. <!-- -->
  533. </a>
  534. <ul class="blockListLast">
  535. <li class="blockList">
  536. <h4>toString</h4>
  537. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ZipLong.html#line.217">toString</a>()</pre>
  538. <dl>
  539. <dt><strong>Overrides:</strong></dt>
  540. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
  541. </dl>
  542. </li>
  543. </ul>
  544. </li>
  545. </ul>
  546. </li>
  547. </ul>
  548. </div>
  549. </div>
  550. <!-- ========= END OF CLASS DATA ========= -->
  551. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  552. <div class="bottomNav"><a name="navbar_bottom">
  553. <!-- -->
  554. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  555. <!-- -->
  556. </a>
  557. <ul class="navList" title="Navigation">
  558. <li><a href="../../../../../../overview-summary.html">Overview</a></li>
  559. <li><a href="package-summary.html">Package</a></li>
  560. <li class="navBarCell1Rev">Class</li>
  561. <li><a href="class-use/ZipLong.html">Use</a></li>
  562. <li><a href="package-tree.html">Tree</a></li>
  563. <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
  564. <li><a href="../../../../../../index-all.html">Index</a></li>
  565. <li><a href="../../../../../../help-doc.html">Help</a></li>
  566. </ul>
  567. </div>
  568. <div class="subNav">
  569. <ul class="navList">
  570. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
  571. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipMethod.html" title="enum in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
  572. </ul>
  573. <ul class="navList">
  574. <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/ZipLong.html" target="_top">Frames</a></li>
  575. <li><a href="ZipLong.html" target="_top">No Frames</a></li>
  576. </ul>
  577. <ul class="navList" id="allclasses_navbar_bottom">
  578. <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
  579. </ul>
  580. <div>
  581. <script type="text/javascript"><!--
  582. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  583. if(window==top) {
  584. allClassesLink.style.display = "block";
  585. }
  586. else {
  587. allClassesLink.style.display = "none";
  588. }
  589. //-->
  590. </script>
  591. </div>
  592. <div>
  593. <ul class="subNavList">
  594. <li>Summary:&nbsp;</li>
  595. <li>Nested&nbsp;|&nbsp;</li>
  596. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  597. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  598. <li><a href="#method_summary">Method</a></li>
  599. </ul>
  600. <ul class="subNavList">
  601. <li>Detail:&nbsp;</li>
  602. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  603. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  604. <li><a href="#method_detail">Method</a></li>
  605. </ul>
  606. </div>
  607. <a name="skip-navbar_bottom">
  608. <!-- -->
  609. </a></div>
  610. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  611. <p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  612. </body>
  613. </html>