X5455_ExtendedTimestamp.html 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055
  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>X5455_ExtendedTimestamp (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="X5455_ExtendedTimestamp (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/X5455_ExtendedTimestamp.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/X0019_EncryptionRecipientCertificateList.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/X7875_NewUnix.html" title="class 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/X5455_ExtendedTimestamp.html" target="_top">Frames</a></li>
  47. <li><a href="X5455_ExtendedTimestamp.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 X5455_ExtendedTimestamp" class="title">Class X5455_ExtendedTimestamp</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.X5455_ExtendedTimestamp</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>, <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></dd>
  103. </dl>
  104. <hr>
  105. <br>
  106. <pre>public class <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.83">X5455_ExtendedTimestamp</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="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</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>, <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"><p>An extra field that stores additional file and directory timestamp data
  110. for zip entries. Each zip entry can include up to three timestamps
  111. (modify, access, create*). The timestamps are stored as 32 bit unsigned
  112. integers representing seconds since UNIX epoch (Jan 1st, 1970, UTC).
  113. This field improves on zip's default timestamp granularity, since it
  114. allows one to store additional timestamps, and, in addition, the timestamps
  115. are stored using per-second granularity (zip's default behaviour can only store
  116. timestamps to the nearest <em>even</em> second).
  117. </p><p>
  118. Unfortunately, 32 (unsigned) bits can only store dates up to the year 2106,
  119. and so this extra field will eventually be obsolete. Enjoy it while it lasts!
  120. </p>
  121. <ul>
  122. <li><b>modifyTime:</b>
  123. most recent time of file/directory modification
  124. (or file/dir creation if the entry has not been
  125. modified since it was created).
  126. </li>
  127. <li><b>accessTime:</b>
  128. most recent time file/directory was opened
  129. (e.g., read from disk). Many people disable
  130. their operating systems from updating this value
  131. using the NOATIME mount option to optimize disk behaviour,
  132. and thus it's not always reliable. In those cases
  133. it's always equal to modifyTime.
  134. </li>
  135. <li><b>*createTime:</b>
  136. modern linux file systems (e.g., ext2 and newer)
  137. do not appear to store a value like this, and so
  138. it's usually omitted altogether in the zip extra
  139. field. Perhaps other unix systems track this.
  140. </li></ul>
  141. <p>
  142. We're using the field definition given in Info-Zip's source archive:
  143. zip-3.0.tar.gz/proginfo/extrafld.txt
  144. </p>
  145. <pre>
  146. Value Size Description
  147. ----- ---- -----------
  148. 0x5455 Short tag for this extra block type ("UT")
  149. TSize Short total data size for this block
  150. Flags Byte info bits
  151. (ModTime) Long time of last modification (UTC/GMT)
  152. (AcTime) Long time of last access (UTC/GMT)
  153. (CrTime) Long time of original creation (UTC/GMT)
  154. Central-header version:
  155. Value Size Description
  156. ----- ---- -----------
  157. 0x5455 Short tag for this extra block type ("UT")
  158. TSize Short total data size for this block
  159. Flags Byte info bits (refers to local header!)
  160. (ModTime) Long time of last modification (UTC/GMT)
  161. </pre></div>
  162. <dl><dt><span class="strong">Since:</span></dt>
  163. <dd>1.5</dd>
  164. <dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../serialized-form.html#org.apache.commons.compress.archivers.zip.X5455_ExtendedTimestamp">Serialized Form</a></dd></dl>
  165. </li>
  166. </ul>
  167. </div>
  168. <div class="summary">
  169. <ul class="blockList">
  170. <li class="blockList">
  171. <!-- =========== FIELD SUMMARY =========== -->
  172. <ul class="blockList">
  173. <li class="blockList"><a name="field_summary">
  174. <!-- -->
  175. </a>
  176. <h3>Field Summary</h3>
  177. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  178. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  179. <tr>
  180. <th class="colFirst" scope="col">Modifier and Type</th>
  181. <th class="colLast" scope="col">Field and Description</th>
  182. </tr>
  183. <tr class="altColor">
  184. <td class="colFirst"><code>static byte</code></td>
  185. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#ACCESS_TIME_BIT">ACCESS_TIME_BIT</a></strong></code>
  186. <div class="block">The bit set inside the flags by when the lasr access time is
  187. present in this extra field.</div>
  188. </td>
  189. </tr>
  190. <tr class="rowColor">
  191. <td class="colFirst"><code>static byte</code></td>
  192. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#CREATE_TIME_BIT">CREATE_TIME_BIT</a></strong></code>
  193. <div class="block">The bit set inside the flags by when the original creation time
  194. is present in this extra field.</div>
  195. </td>
  196. </tr>
  197. <tr class="altColor">
  198. <td class="colFirst"><code>static byte</code></td>
  199. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#MODIFY_TIME_BIT">MODIFY_TIME_BIT</a></strong></code>
  200. <div class="block">The bit set inside the flags by when the last modification time
  201. is present in this extra field.</div>
  202. </td>
  203. </tr>
  204. </table>
  205. </li>
  206. </ul>
  207. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  208. <ul class="blockList">
  209. <li class="blockList"><a name="constructor_summary">
  210. <!-- -->
  211. </a>
  212. <h3>Constructor Summary</h3>
  213. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  214. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  215. <tr>
  216. <th class="colOne" scope="col">Constructor and Description</th>
  217. </tr>
  218. <tr class="altColor">
  219. <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#X5455_ExtendedTimestamp()">X5455_ExtendedTimestamp</a></strong>()</code>
  220. <div class="block">Constructor for X5455_ExtendedTimestamp.</div>
  221. </td>
  222. </tr>
  223. </table>
  224. </li>
  225. </ul>
  226. <!-- ========== METHOD SUMMARY =========== -->
  227. <ul class="blockList">
  228. <li class="blockList"><a name="method_summary">
  229. <!-- -->
  230. </a>
  231. <h3>Method Summary</h3>
  232. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  233. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  234. <tr>
  235. <th class="colFirst" scope="col">Modifier and Type</th>
  236. <th class="colLast" scope="col">Method and Description</th>
  237. </tr>
  238. <tr class="altColor">
  239. <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>
  240. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#clone()">clone</a></strong>()</code>&nbsp;</td>
  241. </tr>
  242. <tr class="rowColor">
  243. <td class="colFirst"><code>boolean</code></td>
  244. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.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>&nbsp;</td>
  245. </tr>
  246. <tr class="altColor">
  247. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a></code></td>
  248. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getAccessJavaTime()">getAccessJavaTime</a></strong>()</code>
  249. <div class="block">Returns the access time as a java.util.Date
  250. of this zip entry, or null if no such timestamp exists in the zip entry.</div>
  251. </td>
  252. </tr>
  253. <tr class="rowColor">
  254. <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  255. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getAccessTime()">getAccessTime</a></strong>()</code>
  256. <div class="block">Returns the access time (seconds since epoch) of this zip entry
  257. as a ZipLong object, or null if no such timestamp exists in the
  258. zip entry.</div>
  259. </td>
  260. </tr>
  261. <tr class="altColor">
  262. <td class="colFirst"><code>byte[]</code></td>
  263. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getCentralDirectoryData()">getCentralDirectoryData</a></strong>()</code>
  264. <div class="block">The actual data to put into central directory data - without Header-ID
  265. or length specifier.</div>
  266. </td>
  267. </tr>
  268. <tr class="rowColor">
  269. <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a></code></td>
  270. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getCentralDirectoryLength()">getCentralDirectoryLength</a></strong>()</code>
  271. <div class="block">Length of the extra field in the local file data - without
  272. Header-ID or length specifier.</div>
  273. </td>
  274. </tr>
  275. <tr class="altColor">
  276. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a></code></td>
  277. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getCreateJavaTime()">getCreateJavaTime</a></strong>()</code>
  278. <div class="block">
  279. Returns the create time as a a java.util.Date
  280. of this zip entry, or null if no such timestamp exists in the zip entry.</div>
  281. </td>
  282. </tr>
  283. <tr class="rowColor">
  284. <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  285. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getCreateTime()">getCreateTime</a></strong>()</code>
  286. <div class="block">
  287. Returns the create time (seconds since epoch) of this zip entry
  288. as a ZipLong object, or null if no such timestamp exists in the
  289. zip entry.</div>
  290. </td>
  291. </tr>
  292. <tr class="altColor">
  293. <td class="colFirst"><code>byte</code></td>
  294. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getFlags()">getFlags</a></strong>()</code>
  295. <div class="block">Gets flags byte.</div>
  296. </td>
  297. </tr>
  298. <tr class="rowColor">
  299. <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a></code></td>
  300. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getHeaderId()">getHeaderId</a></strong>()</code>
  301. <div class="block">The Header-ID.</div>
  302. </td>
  303. </tr>
  304. <tr class="altColor">
  305. <td class="colFirst"><code>byte[]</code></td>
  306. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getLocalFileDataData()">getLocalFileDataData</a></strong>()</code>
  307. <div class="block">The actual data to put into local file data - without Header-ID
  308. or length specifier.</div>
  309. </td>
  310. </tr>
  311. <tr class="rowColor">
  312. <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a></code></td>
  313. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getLocalFileDataLength()">getLocalFileDataLength</a></strong>()</code>
  314. <div class="block">Length of the extra field in the local file data - without
  315. Header-ID or length specifier.</div>
  316. </td>
  317. </tr>
  318. <tr class="altColor">
  319. <td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a></code></td>
  320. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getModifyJavaTime()">getModifyJavaTime</a></strong>()</code>
  321. <div class="block">Returns the modify time as a java.util.Date
  322. of this zip entry, or null if no such timestamp exists in the zip entry.</div>
  323. </td>
  324. </tr>
  325. <tr class="rowColor">
  326. <td class="colFirst"><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a></code></td>
  327. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#getModifyTime()">getModifyTime</a></strong>()</code>
  328. <div class="block">Returns the modify time (seconds since epoch) of this zip entry
  329. as a ZipLong object, or null if no such timestamp exists in the
  330. zip entry.</div>
  331. </td>
  332. </tr>
  333. <tr class="altColor">
  334. <td class="colFirst"><code>int</code></td>
  335. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
  336. </tr>
  337. <tr class="rowColor">
  338. <td class="colFirst"><code>boolean</code></td>
  339. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#isBit0_modifyTimePresent()">isBit0_modifyTimePresent</a></strong>()</code>
  340. <div class="block">Returns whether bit0 of the flags byte is set or not,
  341. which should correspond to the presence or absence of
  342. a modify timestamp in this particular zip entry.</div>
  343. </td>
  344. </tr>
  345. <tr class="altColor">
  346. <td class="colFirst"><code>boolean</code></td>
  347. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#isBit1_accessTimePresent()">isBit1_accessTimePresent</a></strong>()</code>
  348. <div class="block">Returns whether bit1 of the flags byte is set or not,
  349. which should correspond to the presence or absence of
  350. a "last access" timestamp in this particular zip entry.</div>
  351. </td>
  352. </tr>
  353. <tr class="rowColor">
  354. <td class="colFirst"><code>boolean</code></td>
  355. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#isBit2_createTimePresent()">isBit2_createTimePresent</a></strong>()</code>
  356. <div class="block">Returns whether bit2 of the flags byte is set or not,
  357. which should correspond to the presence or absence of
  358. a create timestamp in this particular zip entry.</div>
  359. </td>
  360. </tr>
  361. <tr class="altColor">
  362. <td class="colFirst"><code>void</code></td>
  363. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#parseFromCentralDirectoryData(byte[],%20int,%20int)">parseFromCentralDirectoryData</a></strong>(byte[]&nbsp;buffer,
  364. int&nbsp;offset,
  365. int&nbsp;length)</code>
  366. <div class="block">Doesn't do anything special since this class always uses the
  367. same parsing logic for both central directory and local file data.</div>
  368. </td>
  369. </tr>
  370. <tr class="rowColor">
  371. <td class="colFirst"><code>void</code></td>
  372. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#parseFromLocalFileData(byte[],%20int,%20int)">parseFromLocalFileData</a></strong>(byte[]&nbsp;data,
  373. int&nbsp;offset,
  374. int&nbsp;length)</code>
  375. <div class="block">Populate data from this array as if it was in local file data.</div>
  376. </td>
  377. </tr>
  378. <tr class="altColor">
  379. <td class="colFirst"><code>void</code></td>
  380. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setAccessJavaTime(java.util.Date)">setAccessJavaTime</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d)</code>
  381. <div class="block">
  382. Sets the access time as a java.util.Date
  383. of this zip entry.</div>
  384. </td>
  385. </tr>
  386. <tr class="rowColor">
  387. <td class="colFirst"><code>void</code></td>
  388. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setAccessTime(org.apache.commons.compress.archivers.zip.ZipLong)">setAccessTime</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;l)</code>
  389. <div class="block">
  390. Sets the access time (seconds since epoch) of this zip entry
  391. using a ZipLong object
  392. Note: the setters for flags and timestamps are decoupled.</div>
  393. </td>
  394. </tr>
  395. <tr class="altColor">
  396. <td class="colFirst"><code>void</code></td>
  397. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setCreateJavaTime(java.util.Date)">setCreateJavaTime</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d)</code>
  398. <div class="block">
  399. Sets the create time as a java.util.Date
  400. of this zip entry.</div>
  401. </td>
  402. </tr>
  403. <tr class="rowColor">
  404. <td class="colFirst"><code>void</code></td>
  405. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setCreateTime(org.apache.commons.compress.archivers.zip.ZipLong)">setCreateTime</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;l)</code>
  406. <div class="block">
  407. Sets the create time (seconds since epoch) of this zip entry
  408. using a ZipLong object
  409. Note: the setters for flags and timestamps are decoupled.</div>
  410. </td>
  411. </tr>
  412. <tr class="altColor">
  413. <td class="colFirst"><code>void</code></td>
  414. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setFlags(byte)">setFlags</a></strong>(byte&nbsp;flags)</code>
  415. <div class="block">Sets flags byte.</div>
  416. </td>
  417. </tr>
  418. <tr class="rowColor">
  419. <td class="colFirst"><code>void</code></td>
  420. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setModifyJavaTime(java.util.Date)">setModifyJavaTime</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d)</code>
  421. <div class="block">
  422. Sets the modify time as a java.util.Date
  423. of this zip entry.</div>
  424. </td>
  425. </tr>
  426. <tr class="altColor">
  427. <td class="colFirst"><code>void</code></td>
  428. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#setModifyTime(org.apache.commons.compress.archivers.zip.ZipLong)">setModifyTime</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;l)</code>
  429. <div class="block">
  430. Sets the modify time (seconds since epoch) of this zip entry
  431. using a ZipLong object.</div>
  432. </td>
  433. </tr>
  434. <tr class="rowColor">
  435. <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>
  436. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#toString()">toString</a></strong>()</code>
  437. <div class="block">Returns a String representation of this class useful for
  438. debugging purposes.</div>
  439. </td>
  440. </tr>
  441. </table>
  442. <ul class="blockList">
  443. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  444. <!-- -->
  445. </a>
  446. <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>
  447. <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>
  448. </ul>
  449. </li>
  450. </ul>
  451. </li>
  452. </ul>
  453. </div>
  454. <div class="details">
  455. <ul class="blockList">
  456. <li class="blockList">
  457. <!-- ============ FIELD DETAIL =========== -->
  458. <ul class="blockList">
  459. <li class="blockList"><a name="field_detail">
  460. <!-- -->
  461. </a>
  462. <h3>Field Detail</h3>
  463. <a name="MODIFY_TIME_BIT">
  464. <!-- -->
  465. </a>
  466. <ul class="blockList">
  467. <li class="blockList">
  468. <h4>MODIFY_TIME_BIT</h4>
  469. <pre>public static final&nbsp;byte <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.91">MODIFY_TIME_BIT</a></pre>
  470. <div class="block">The bit set inside the flags by when the last modification time
  471. is present in this extra field.</div>
  472. <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../constant-values.html#org.apache.commons.compress.archivers.zip.X5455_ExtendedTimestamp.MODIFY_TIME_BIT">Constant Field Values</a></dd></dl>
  473. </li>
  474. </ul>
  475. <a name="ACCESS_TIME_BIT">
  476. <!-- -->
  477. </a>
  478. <ul class="blockList">
  479. <li class="blockList">
  480. <h4>ACCESS_TIME_BIT</h4>
  481. <pre>public static final&nbsp;byte <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.96">ACCESS_TIME_BIT</a></pre>
  482. <div class="block">The bit set inside the flags by when the lasr access time is
  483. present in this extra field.</div>
  484. <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../constant-values.html#org.apache.commons.compress.archivers.zip.X5455_ExtendedTimestamp.ACCESS_TIME_BIT">Constant Field Values</a></dd></dl>
  485. </li>
  486. </ul>
  487. <a name="CREATE_TIME_BIT">
  488. <!-- -->
  489. </a>
  490. <ul class="blockListLast">
  491. <li class="blockList">
  492. <h4>CREATE_TIME_BIT</h4>
  493. <pre>public static final&nbsp;byte <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.101">CREATE_TIME_BIT</a></pre>
  494. <div class="block">The bit set inside the flags by when the original creation time
  495. is present in this extra field.</div>
  496. <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../constant-values.html#org.apache.commons.compress.archivers.zip.X5455_ExtendedTimestamp.CREATE_TIME_BIT">Constant Field Values</a></dd></dl>
  497. </li>
  498. </ul>
  499. </li>
  500. </ul>
  501. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  502. <ul class="blockList">
  503. <li class="blockList"><a name="constructor_detail">
  504. <!-- -->
  505. </a>
  506. <h3>Constructor Detail</h3>
  507. <a name="X5455_ExtendedTimestamp()">
  508. <!-- -->
  509. </a>
  510. <ul class="blockListLast">
  511. <li class="blockList">
  512. <h4>X5455_ExtendedTimestamp</h4>
  513. <pre>public&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.122">X5455_ExtendedTimestamp</a>()</pre>
  514. <div class="block">Constructor for X5455_ExtendedTimestamp.</div>
  515. </li>
  516. </ul>
  517. </li>
  518. </ul>
  519. <!-- ============ METHOD DETAIL ========== -->
  520. <ul class="blockList">
  521. <li class="blockList"><a name="method_detail">
  522. <!-- -->
  523. </a>
  524. <h3>Method Detail</h3>
  525. <a name="getHeaderId()">
  526. <!-- -->
  527. </a>
  528. <ul class="blockList">
  529. <li class="blockList">
  530. <h4>getHeaderId</h4>
  531. <pre>public&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.130">getHeaderId</a>()</pre>
  532. <div class="block">The Header-ID.</div>
  533. <dl>
  534. <dt><strong>Specified by:</strong></dt>
  535. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#getHeaderId()">getHeaderId</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  536. <dt><span class="strong">Returns:</span></dt><dd>the value for the header id for this extrafield</dd></dl>
  537. </li>
  538. </ul>
  539. <a name="getLocalFileDataLength()">
  540. <!-- -->
  541. </a>
  542. <ul class="blockList">
  543. <li class="blockList">
  544. <h4>getLocalFileDataLength</h4>
  545. <pre>public&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.141">getLocalFileDataLength</a>()</pre>
  546. <div class="block">Length of the extra field in the local file data - without
  547. Header-ID or length specifier.</div>
  548. <dl>
  549. <dt><strong>Specified by:</strong></dt>
  550. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#getLocalFileDataLength()">getLocalFileDataLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  551. <dt><span class="strong">Returns:</span></dt><dd>a <code>ZipShort</code> for the length of the data of this extra field</dd></dl>
  552. </li>
  553. </ul>
  554. <a name="getCentralDirectoryLength()">
  555. <!-- -->
  556. </a>
  557. <ul class="blockList">
  558. <li class="blockList">
  559. <h4>getCentralDirectoryLength</h4>
  560. <pre>public&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.160">getCentralDirectoryLength</a>()</pre>
  561. <div class="block">Length of the extra field in the local file data - without
  562. Header-ID or length specifier.
  563. <p>For X5455 the central length is often smaller than the
  564. local length, because central cannot contain access or create
  565. timestamps.</p></div>
  566. <dl>
  567. <dt><strong>Specified by:</strong></dt>
  568. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#getCentralDirectoryLength()">getCentralDirectoryLength</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  569. <dt><span class="strong">Returns:</span></dt><dd>a <code>ZipShort</code> for the length of the data of this extra field</dd></dl>
  570. </li>
  571. </ul>
  572. <a name="getLocalFileDataData()">
  573. <!-- -->
  574. </a>
  575. <ul class="blockList">
  576. <li class="blockList">
  577. <h4>getLocalFileDataData</h4>
  578. <pre>public&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.173">getLocalFileDataData</a>()</pre>
  579. <div class="block">The actual data to put into local file data - without Header-ID
  580. or length specifier.</div>
  581. <dl>
  582. <dt><strong>Specified by:</strong></dt>
  583. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#getLocalFileDataData()">getLocalFileDataData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  584. <dt><span class="strong">Returns:</span></dt><dd>get the data</dd></dl>
  585. </li>
  586. </ul>
  587. <a name="getCentralDirectoryData()">
  588. <!-- -->
  589. </a>
  590. <ul class="blockList">
  591. <li class="blockList">
  592. <h4>getCentralDirectoryData</h4>
  593. <pre>public&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.202">getCentralDirectoryData</a>()</pre>
  594. <div class="block">The actual data to put into central directory data - without Header-ID
  595. or length specifier.</div>
  596. <dl>
  597. <dt><strong>Specified by:</strong></dt>
  598. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#getCentralDirectoryData()">getCentralDirectoryData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  599. <dt><span class="strong">Returns:</span></dt><dd>the central directory data</dd></dl>
  600. </li>
  601. </ul>
  602. <a name="parseFromLocalFileData(byte[], int, int)">
  603. <!-- -->
  604. </a>
  605. <ul class="blockList">
  606. <li class="blockList">
  607. <h4>parseFromLocalFileData</h4>
  608. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.221">parseFromLocalFileData</a>(byte[]&nbsp;data,
  609. int&nbsp;offset,
  610. int&nbsp;length)
  611. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipException.html?is-external=true" title="class or interface in java.util.zip">ZipException</a></pre>
  612. <div class="block">Populate data from this array as if it was in local file data.</div>
  613. <dl>
  614. <dt><strong>Specified by:</strong></dt>
  615. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#parseFromLocalFileData(byte[],%20int,%20int)">parseFromLocalFileData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  616. <dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - an array of bytes</dd><dd><code>offset</code> - the start offset</dd><dd><code>length</code> - the number of bytes in the array from offset</dd>
  617. <dt><span class="strong">Throws:</span></dt>
  618. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipException.html?is-external=true" title="class or interface in java.util.zip">ZipException</a></code> - on error</dd></dl>
  619. </li>
  620. </ul>
  621. <a name="parseFromCentralDirectoryData(byte[], int, int)">
  622. <!-- -->
  623. </a>
  624. <ul class="blockList">
  625. <li class="blockList">
  626. <h4>parseFromCentralDirectoryData</h4>
  627. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.249">parseFromCentralDirectoryData</a>(byte[]&nbsp;buffer,
  628. int&nbsp;offset,
  629. int&nbsp;length)
  630. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipException.html?is-external=true" title="class or interface in java.util.zip">ZipException</a></pre>
  631. <div class="block">Doesn't do anything special since this class always uses the
  632. same parsing logic for both central directory and local file data.</div>
  633. <dl>
  634. <dt><strong>Specified by:</strong></dt>
  635. <dd><code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html#parseFromCentralDirectoryData(byte[],%20int,%20int)">parseFromCentralDirectoryData</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></dd>
  636. <dt><span class="strong">Parameters:</span></dt><dd><code>buffer</code> - the buffer to read data from</dd><dd><code>offset</code> - offset into buffer to read data</dd><dd><code>length</code> - the length of data</dd>
  637. <dt><span class="strong">Throws:</span></dt>
  638. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipException.html?is-external=true" title="class or interface in java.util.zip">ZipException</a></code> - on error</dd></dl>
  639. </li>
  640. </ul>
  641. <a name="setFlags(byte)">
  642. <!-- -->
  643. </a>
  644. <ul class="blockList">
  645. <li class="blockList">
  646. <h4>setFlags</h4>
  647. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.281">setFlags</a>(byte&nbsp;flags)</pre>
  648. <div class="block">Sets flags byte. The flags byte tells us which of the
  649. three datestamp fields are present in the data:
  650. <pre>
  651. bit0 - modify time
  652. bit1 - access time
  653. bit2 - create time
  654. </pre>
  655. Only first 3 bits of flags are used according to the
  656. latest version of the spec (December 2012).</div>
  657. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>flags</code> - flags byte indicating which of the
  658. three datestamp fields are present.</dd></dl>
  659. </li>
  660. </ul>
  661. <a name="getFlags()">
  662. <!-- -->
  663. </a>
  664. <ul class="blockList">
  665. <li class="blockList">
  666. <h4>getFlags</h4>
  667. <pre>public&nbsp;byte&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.302">getFlags</a>()</pre>
  668. <div class="block">Gets flags byte. The flags byte tells us which of the
  669. three datestamp fields are present in the data:
  670. <pre>
  671. bit0 - modify time
  672. bit1 - access time
  673. bit2 - create time
  674. </pre>
  675. Only first 3 bits of flags are used according to the
  676. latest version of the spec (December 2012).</div>
  677. <dl><dt><span class="strong">Returns:</span></dt><dd>flags byte indicating which of the
  678. three datestamp fields are present.</dd></dl>
  679. </li>
  680. </ul>
  681. <a name="isBit0_modifyTimePresent()">
  682. <!-- -->
  683. </a>
  684. <ul class="blockList">
  685. <li class="blockList">
  686. <h4>isBit0_modifyTimePresent</h4>
  687. <pre>public&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.311">isBit0_modifyTimePresent</a>()</pre>
  688. <div class="block">Returns whether bit0 of the flags byte is set or not,
  689. which should correspond to the presence or absence of
  690. a modify timestamp in this particular zip entry.</div>
  691. <dl><dt><span class="strong">Returns:</span></dt><dd>true if bit0 of the flags byte is set.</dd></dl>
  692. </li>
  693. </ul>
  694. <a name="isBit1_accessTimePresent()">
  695. <!-- -->
  696. </a>
  697. <ul class="blockList">
  698. <li class="blockList">
  699. <h4>isBit1_accessTimePresent</h4>
  700. <pre>public&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.320">isBit1_accessTimePresent</a>()</pre>
  701. <div class="block">Returns whether bit1 of the flags byte is set or not,
  702. which should correspond to the presence or absence of
  703. a "last access" timestamp in this particular zip entry.</div>
  704. <dl><dt><span class="strong">Returns:</span></dt><dd>true if bit1 of the flags byte is set.</dd></dl>
  705. </li>
  706. </ul>
  707. <a name="isBit2_createTimePresent()">
  708. <!-- -->
  709. </a>
  710. <ul class="blockList">
  711. <li class="blockList">
  712. <h4>isBit2_createTimePresent</h4>
  713. <pre>public&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.329">isBit2_createTimePresent</a>()</pre>
  714. <div class="block">Returns whether bit2 of the flags byte is set or not,
  715. which should correspond to the presence or absence of
  716. a create timestamp in this particular zip entry.</div>
  717. <dl><dt><span class="strong">Returns:</span></dt><dd>true if bit2 of the flags byte is set.</dd></dl>
  718. </li>
  719. </ul>
  720. <a name="getModifyTime()">
  721. <!-- -->
  722. </a>
  723. <ul class="blockList">
  724. <li class="blockList">
  725. <h4>getModifyTime</h4>
  726. <pre>public&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.338">getModifyTime</a>()</pre>
  727. <div class="block">Returns the modify time (seconds since epoch) of this zip entry
  728. as a ZipLong object, or null if no such timestamp exists in the
  729. zip entry.</div>
  730. <dl><dt><span class="strong">Returns:</span></dt><dd>modify time (seconds since epoch) or null.</dd></dl>
  731. </li>
  732. </ul>
  733. <a name="getAccessTime()">
  734. <!-- -->
  735. </a>
  736. <ul class="blockList">
  737. <li class="blockList">
  738. <h4>getAccessTime</h4>
  739. <pre>public&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.347">getAccessTime</a>()</pre>
  740. <div class="block">Returns the access time (seconds since epoch) of this zip entry
  741. as a ZipLong object, or null if no such timestamp exists in the
  742. zip entry.</div>
  743. <dl><dt><span class="strong">Returns:</span></dt><dd>access time (seconds since epoch) or null.</dd></dl>
  744. </li>
  745. </ul>
  746. <a name="getCreateTime()">
  747. <!-- -->
  748. </a>
  749. <ul class="blockList">
  750. <li class="blockList">
  751. <h4>getCreateTime</h4>
  752. <pre>public&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.362">getCreateTime</a>()</pre>
  753. <div class="block"><p>
  754. Returns the create time (seconds since epoch) of this zip entry
  755. as a ZipLong object, or null if no such timestamp exists in the
  756. zip entry.
  757. </p><p>
  758. Note: modern linux file systems (e.g., ext2)
  759. do not appear to store a "create time" value, and so
  760. it's usually omitted altogether in the zip extra
  761. field. Perhaps other unix systems track this.</div>
  762. <dl><dt><span class="strong">Returns:</span></dt><dd>create time (seconds since epoch) or null.</dd></dl>
  763. </li>
  764. </ul>
  765. <a name="getModifyJavaTime()">
  766. <!-- -->
  767. </a>
  768. <ul class="blockList">
  769. <li class="blockList">
  770. <h4>getModifyJavaTime</h4>
  771. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.372">getModifyJavaTime</a>()</pre>
  772. <div class="block">Returns the modify time as a java.util.Date
  773. of this zip entry, or null if no such timestamp exists in the zip entry.
  774. The milliseconds are always zeroed out, since the underlying data
  775. offers only per-second precision.</div>
  776. <dl><dt><span class="strong">Returns:</span></dt><dd>modify time as java.util.Date or null.</dd></dl>
  777. </li>
  778. </ul>
  779. <a name="getAccessJavaTime()">
  780. <!-- -->
  781. </a>
  782. <ul class="blockList">
  783. <li class="blockList">
  784. <h4>getAccessJavaTime</h4>
  785. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.384">getAccessJavaTime</a>()</pre>
  786. <div class="block">Returns the access time as a java.util.Date
  787. of this zip entry, or null if no such timestamp exists in the zip entry.
  788. The milliseconds are always zeroed out, since the underlying data
  789. offers only per-second precision.</div>
  790. <dl><dt><span class="strong">Returns:</span></dt><dd>access time as java.util.Date or null.</dd></dl>
  791. </li>
  792. </ul>
  793. <a name="getCreateJavaTime()">
  794. <!-- -->
  795. </a>
  796. <ul class="blockList">
  797. <li class="blockList">
  798. <h4>getCreateJavaTime</h4>
  799. <pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.402">getCreateJavaTime</a>()</pre>
  800. <div class="block"><p>
  801. Returns the create time as a a java.util.Date
  802. of this zip entry, or null if no such timestamp exists in the zip entry.
  803. The milliseconds are always zeroed out, since the underlying data
  804. offers only per-second precision.
  805. </p><p>
  806. Note: modern linux file systems (e.g., ext2)
  807. do not appear to store a "create time" value, and so
  808. it's usually omitted altogether in the zip extra
  809. field. Perhaps other unix systems track this.</div>
  810. <dl><dt><span class="strong">Returns:</span></dt><dd>create time as java.util.Date or null.</dd></dl>
  811. </li>
  812. </ul>
  813. <a name="setModifyTime(org.apache.commons.compress.archivers.zip.ZipLong)">
  814. <!-- -->
  815. </a>
  816. <ul class="blockList">
  817. <li class="blockList">
  818. <h4>setModifyTime</h4>
  819. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.418">setModifyTime</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;l)</pre>
  820. <div class="block"><p>
  821. Sets the modify time (seconds since epoch) of this zip entry
  822. using a ZipLong object.
  823. </p><p>
  824. Note: the setters for flags and timestamps are decoupled.
  825. Even if the timestamp is not-null, it will only be written
  826. out if the corresponding bit in the flags is also set.
  827. </p></div>
  828. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>l</code> - ZipLong of the modify time (seconds per epoch)</dd></dl>
  829. </li>
  830. </ul>
  831. <a name="setAccessTime(org.apache.commons.compress.archivers.zip.ZipLong)">
  832. <!-- -->
  833. </a>
  834. <ul class="blockList">
  835. <li class="blockList">
  836. <h4>setAccessTime</h4>
  837. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.437">setAccessTime</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;l)</pre>
  838. <div class="block"><p>
  839. Sets the access time (seconds since epoch) of this zip entry
  840. using a ZipLong object
  841. </p><p>
  842. Note: the setters for flags and timestamps are decoupled.
  843. Even if the timestamp is not-null, it will only be written
  844. out if the corresponding bit in the flags is also set.
  845. </p></div>
  846. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>l</code> - ZipLong of the access time (seconds per epoch)</dd></dl>
  847. </li>
  848. </ul>
  849. <a name="setCreateTime(org.apache.commons.compress.archivers.zip.ZipLong)">
  850. <!-- -->
  851. </a>
  852. <ul class="blockList">
  853. <li class="blockList">
  854. <h4>setCreateTime</h4>
  855. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.456">setCreateTime</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipLong.html" title="class in org.apache.commons.compress.archivers.zip">ZipLong</a>&nbsp;l)</pre>
  856. <div class="block"><p>
  857. Sets the create time (seconds since epoch) of this zip entry
  858. using a ZipLong object
  859. </p><p>
  860. Note: the setters for flags and timestamps are decoupled.
  861. Even if the timestamp is not-null, it will only be written
  862. out if the corresponding bit in the flags is also set.
  863. </p></div>
  864. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>l</code> - ZipLong of the create time (seconds per epoch)</dd></dl>
  865. </li>
  866. </ul>
  867. <a name="setModifyJavaTime(java.util.Date)">
  868. <!-- -->
  869. </a>
  870. <ul class="blockList">
  871. <li class="blockList">
  872. <h4>setModifyJavaTime</h4>
  873. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.476">setModifyJavaTime</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d)</pre>
  874. <div class="block"><p>
  875. Sets the modify time as a java.util.Date
  876. of this zip entry. Supplied value is truncated to per-second
  877. precision (milliseconds zeroed-out).
  878. </p><p>
  879. Note: the setters for flags and timestamps are decoupled.
  880. Even if the timestamp is not-null, it will only be written
  881. out if the corresponding bit in the flags is also set.
  882. </p></div>
  883. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - modify time as java.util.Date</dd></dl>
  884. </li>
  885. </ul>
  886. <a name="setAccessJavaTime(java.util.Date)">
  887. <!-- -->
  888. </a>
  889. <ul class="blockList">
  890. <li class="blockList">
  891. <h4>setAccessJavaTime</h4>
  892. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.491">setAccessJavaTime</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d)</pre>
  893. <div class="block"><p>
  894. Sets the access time as a java.util.Date
  895. of this zip entry. Supplied value is truncated to per-second
  896. precision (milliseconds zeroed-out).
  897. </p><p>
  898. Note: the setters for flags and timestamps are decoupled.
  899. Even if the timestamp is not-null, it will only be written
  900. out if the corresponding bit in the flags is also set.
  901. </p></div>
  902. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - access time as java.util.Date</dd></dl>
  903. </li>
  904. </ul>
  905. <a name="setCreateJavaTime(java.util.Date)">
  906. <!-- -->
  907. </a>
  908. <ul class="blockList">
  909. <li class="blockList">
  910. <h4>setCreateJavaTime</h4>
  911. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.506">setCreateJavaTime</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</a>&nbsp;d)</pre>
  912. <div class="block"><p>
  913. Sets the create time as a java.util.Date
  914. of this zip entry. Supplied value is truncated to per-second
  915. precision (milliseconds zeroed-out).
  916. </p><p>
  917. Note: the setters for flags and timestamps are decoupled.
  918. Even if the timestamp is not-null, it will only be written
  919. out if the corresponding bit in the flags is also set.
  920. </p></div>
  921. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - create time as java.util.Date</dd></dl>
  922. </li>
  923. </ul>
  924. <a name="toString()">
  925. <!-- -->
  926. </a>
  927. <ul class="blockList">
  928. <li class="blockList">
  929. <h4>toString</h4>
  930. <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/X5455_ExtendedTimestamp.html#line.537">toString</a>()</pre>
  931. <div class="block">Returns a String representation of this class useful for
  932. debugging purposes.</div>
  933. <dl>
  934. <dt><strong>Overrides:</strong></dt>
  935. <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>
  936. <dt><span class="strong">Returns:</span></dt><dd>A String representation of this class useful for
  937. debugging purposes.</dd></dl>
  938. </li>
  939. </ul>
  940. <a name="clone()">
  941. <!-- -->
  942. </a>
  943. <ul class="blockList">
  944. <li class="blockList">
  945. <h4>clone</h4>
  946. <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/X5455_ExtendedTimestamp.html#line.557">clone</a>()
  947. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></pre>
  948. <dl>
  949. <dt><strong>Overrides:</strong></dt>
  950. <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>
  951. <dt><span class="strong">Throws:</span></dt>
  952. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></code></dd></dl>
  953. </li>
  954. </ul>
  955. <a name="equals(java.lang.Object)">
  956. <!-- -->
  957. </a>
  958. <ul class="blockList">
  959. <li class="blockList">
  960. <h4>equals</h4>
  961. <pre>public&nbsp;boolean&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.562">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>
  962. <dl>
  963. <dt><strong>Overrides:</strong></dt>
  964. <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>
  965. </dl>
  966. </li>
  967. </ul>
  968. <a name="hashCode()">
  969. <!-- -->
  970. </a>
  971. <ul class="blockListLast">
  972. <li class="blockList">
  973. <h4>hashCode</h4>
  974. <pre>public&nbsp;int&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html#line.577">hashCode</a>()</pre>
  975. <dl>
  976. <dt><strong>Overrides:</strong></dt>
  977. <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>
  978. </dl>
  979. </li>
  980. </ul>
  981. </li>
  982. </ul>
  983. </li>
  984. </ul>
  985. </div>
  986. </div>
  987. <!-- ========= END OF CLASS DATA ========= -->
  988. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  989. <div class="bottomNav"><a name="navbar_bottom">
  990. <!-- -->
  991. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  992. <!-- -->
  993. </a>
  994. <ul class="navList" title="Navigation">
  995. <li><a href="../../../../../../overview-summary.html">Overview</a></li>
  996. <li><a href="package-summary.html">Package</a></li>
  997. <li class="navBarCell1Rev">Class</li>
  998. <li><a href="class-use/X5455_ExtendedTimestamp.html">Use</a></li>
  999. <li><a href="package-tree.html">Tree</a></li>
  1000. <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
  1001. <li><a href="../../../../../../index-all.html">Index</a></li>
  1002. <li><a href="../../../../../../help-doc.html">Help</a></li>
  1003. </ul>
  1004. </div>
  1005. <div class="subNav">
  1006. <ul class="navList">
  1007. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/X0019_EncryptionRecipientCertificateList.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
  1008. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/X7875_NewUnix.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
  1009. </ul>
  1010. <ul class="navList">
  1011. <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/X5455_ExtendedTimestamp.html" target="_top">Frames</a></li>
  1012. <li><a href="X5455_ExtendedTimestamp.html" target="_top">No Frames</a></li>
  1013. </ul>
  1014. <ul class="navList" id="allclasses_navbar_bottom">
  1015. <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
  1016. </ul>
  1017. <div>
  1018. <script type="text/javascript"><!--
  1019. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  1020. if(window==top) {
  1021. allClassesLink.style.display = "block";
  1022. }
  1023. else {
  1024. allClassesLink.style.display = "none";
  1025. }
  1026. //-->
  1027. </script>
  1028. </div>
  1029. <div>
  1030. <ul class="subNavList">
  1031. <li>Summary:&nbsp;</li>
  1032. <li>Nested&nbsp;|&nbsp;</li>
  1033. <li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
  1034. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  1035. <li><a href="#method_summary">Method</a></li>
  1036. </ul>
  1037. <ul class="subNavList">
  1038. <li>Detail:&nbsp;</li>
  1039. <li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
  1040. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  1041. <li><a href="#method_detail">Method</a></li>
  1042. </ul>
  1043. </div>
  1044. <a name="skip-navbar_bottom">
  1045. <!-- -->
  1046. </a></div>
  1047. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1048. <p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  1049. </body>
  1050. </html>