ExtraFieldUtils.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  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>ExtraFieldUtils (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="ExtraFieldUtils (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/ExtraFieldUtils.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/AsiExtraField.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/ExtraFieldUtils.UnparseableExtraField.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/ExtraFieldUtils.html" target="_top">Frames</a></li>
  47. <li><a href="ExtraFieldUtils.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><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
  68. <li>Field&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>Field&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 ExtraFieldUtils" class="title">Class ExtraFieldUtils</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.ExtraFieldUtils</li>
  94. </ul>
  95. </li>
  96. </ul>
  97. <div class="description">
  98. <ul class="blockList">
  99. <li class="blockList">
  100. <hr>
  101. <br>
  102. <pre>public class <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.31">ExtraFieldUtils</a>
  103. 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></pre>
  104. <div class="block">ZipExtraField related methods</div>
  105. <dl><dt><span class="strong">This class is not thread-safe</span></dt>
  106. <dd>because the HashMap is not synch.</dd></dl>
  107. </li>
  108. </ul>
  109. </div>
  110. <div class="summary">
  111. <ul class="blockList">
  112. <li class="blockList">
  113. <!-- ======== NESTED CLASS SUMMARY ======== -->
  114. <ul class="blockList">
  115. <li class="blockList"><a name="nested_class_summary">
  116. <!-- -->
  117. </a>
  118. <h3>Nested Class Summary</h3>
  119. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
  120. <caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
  121. <tr>
  122. <th class="colFirst" scope="col">Modifier and Type</th>
  123. <th class="colLast" scope="col">Class and Description</th>
  124. </tr>
  125. <tr class="altColor">
  126. <td class="colFirst"><code>static class&nbsp;</code></td>
  127. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.UnparseableExtraField.html" title="class in org.apache.commons.compress.archivers.zip">ExtraFieldUtils.UnparseableExtraField</a></strong></code>
  128. <div class="block">"enum" for the possible actions to take if the extra field
  129. cannot be parsed.</div>
  130. </td>
  131. </tr>
  132. </table>
  133. </li>
  134. </ul>
  135. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  136. <ul class="blockList">
  137. <li class="blockList"><a name="constructor_summary">
  138. <!-- -->
  139. </a>
  140. <h3>Constructor Summary</h3>
  141. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  142. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  143. <tr>
  144. <th class="colOne" scope="col">Constructor and Description</th>
  145. </tr>
  146. <tr class="altColor">
  147. <td class="colOne"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#ExtraFieldUtils()">ExtraFieldUtils</a></strong>()</code>&nbsp;</td>
  148. </tr>
  149. </table>
  150. </li>
  151. </ul>
  152. <!-- ========== METHOD SUMMARY =========== -->
  153. <ul class="blockList">
  154. <li class="blockList"><a name="method_summary">
  155. <!-- -->
  156. </a>
  157. <h3>Method Summary</h3>
  158. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  159. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  160. <tr>
  161. <th class="colFirst" scope="col">Modifier and Type</th>
  162. <th class="colLast" scope="col">Method and Description</th>
  163. </tr>
  164. <tr class="altColor">
  165. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a></code></td>
  166. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#createExtraField(org.apache.commons.compress.archivers.zip.ZipShort)">createExtraField</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a>&nbsp;headerId)</code>
  167. <div class="block">Create an instance of the appropriate ExtraField, falls back to
  168. <a href="../../../../../../org/apache/commons/compress/archivers/zip/UnrecognizedExtraField.html" title="class in org.apache.commons.compress.archivers.zip"><code>UnrecognizedExtraField</code></a>.</div>
  169. </td>
  170. </tr>
  171. <tr class="rowColor">
  172. <td class="colFirst"><code>static byte[]</code></td>
  173. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#mergeCentralDirectoryData(org.apache.commons.compress.archivers.zip.ZipExtraField[])">mergeCentralDirectoryData</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;data)</code>
  174. <div class="block">Merges the central directory fields of the given ZipExtraFields.</div>
  175. </td>
  176. </tr>
  177. <tr class="altColor">
  178. <td class="colFirst"><code>static byte[]</code></td>
  179. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#mergeLocalFileDataData(org.apache.commons.compress.archivers.zip.ZipExtraField[])">mergeLocalFileDataData</a></strong>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;data)</code>
  180. <div class="block">Merges the local file data fields of the given ZipExtraFields.</div>
  181. </td>
  182. </tr>
  183. <tr class="rowColor">
  184. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]</code></td>
  185. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#parse(byte[])">parse</a></strong>(byte[]&nbsp;data)</code>
  186. <div class="block">Split the array into ExtraFields and populate them with the
  187. given data as local file data, throwing an exception if the
  188. data cannot be parsed.</div>
  189. </td>
  190. </tr>
  191. <tr class="altColor">
  192. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]</code></td>
  193. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#parse(byte[],%20boolean)">parse</a></strong>(byte[]&nbsp;data,
  194. boolean&nbsp;local)</code>
  195. <div class="block">Split the array into ExtraFields and populate them with the
  196. given data, throwing an exception if the data cannot be parsed.</div>
  197. </td>
  198. </tr>
  199. <tr class="rowColor">
  200. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]</code></td>
  201. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#parse(byte[],%20boolean,%20org.apache.commons.compress.archivers.zip.ExtraFieldUtils.UnparseableExtraField)">parse</a></strong>(byte[]&nbsp;data,
  202. boolean&nbsp;local,
  203. <a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.UnparseableExtraField.html" title="class in org.apache.commons.compress.archivers.zip">ExtraFieldUtils.UnparseableExtraField</a>&nbsp;onUnparseableData)</code>
  204. <div class="block">Split the array into ExtraFields and populate them with the
  205. given data.</div>
  206. </td>
  207. </tr>
  208. <tr class="altColor">
  209. <td class="colFirst"><code>static void</code></td>
  210. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#register(java.lang.Class)">register</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;c)</code>
  211. <div class="block">Register a ZipExtraField implementation.</div>
  212. </td>
  213. </tr>
  214. </table>
  215. <ul class="blockList">
  216. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  217. <!-- -->
  218. </a>
  219. <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>
  220. <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>, <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>, <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#hashCode()" title="class or interface in java.lang">hashCode</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#toString()" title="class or interface in java.lang">toString</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>
  221. </ul>
  222. </li>
  223. </ul>
  224. </li>
  225. </ul>
  226. </div>
  227. <div class="details">
  228. <ul class="blockList">
  229. <li class="blockList">
  230. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  231. <ul class="blockList">
  232. <li class="blockList"><a name="constructor_detail">
  233. <!-- -->
  234. </a>
  235. <h3>Constructor Detail</h3>
  236. <a name="ExtraFieldUtils()">
  237. <!-- -->
  238. </a>
  239. <ul class="blockListLast">
  240. <li class="blockList">
  241. <h4>ExtraFieldUtils</h4>
  242. <pre>public&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.31">ExtraFieldUtils</a>()</pre>
  243. </li>
  244. </ul>
  245. </li>
  246. </ul>
  247. <!-- ============ METHOD DETAIL ========== -->
  248. <ul class="blockList">
  249. <li class="blockList"><a name="method_detail">
  250. <!-- -->
  251. </a>
  252. <h3>Method Detail</h3>
  253. <a name="register(java.lang.Class)">
  254. <!-- -->
  255. </a>
  256. <ul class="blockList">
  257. <li class="blockList">
  258. <h4>register</h4>
  259. <pre>public static&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.64">register</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;c)</pre>
  260. <div class="block">Register a ZipExtraField implementation.
  261. <p>The given class must have a no-arg constructor and implement
  262. the <a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip"><code>ZipExtraField interface</code></a>.</p></div>
  263. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>c</code> - the class to register</dd></dl>
  264. </li>
  265. </ul>
  266. <a name="createExtraField(org.apache.commons.compress.archivers.zip.ZipShort)">
  267. <!-- -->
  268. </a>
  269. <ul class="blockList">
  270. <li class="blockList">
  271. <h4>createExtraField</h4>
  272. <pre>public static&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.85">createExtraField</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipShort.html" title="class in org.apache.commons.compress.archivers.zip">ZipShort</a>&nbsp;headerId)
  273. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a>,
  274. <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalAccessException.html?is-external=true" title="class or interface in java.lang">IllegalAccessException</a></pre>
  275. <div class="block">Create an instance of the appropriate ExtraField, falls back to
  276. <a href="../../../../../../org/apache/commons/compress/archivers/zip/UnrecognizedExtraField.html" title="class in org.apache.commons.compress.archivers.zip"><code>UnrecognizedExtraField</code></a>.</div>
  277. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>headerId</code> - the header identifier</dd>
  278. <dt><span class="strong">Returns:</span></dt><dd>an instance of the appropriate ExtraField</dd>
  279. <dt><span class="strong">Throws:</span></dt>
  280. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/InstantiationException.html?is-external=true" title="class or interface in java.lang">InstantiationException</a></code> - if unable to instantiate the class</dd>
  281. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalAccessException.html?is-external=true" title="class or interface in java.lang">IllegalAccessException</a></code> - if not allowed to instantiate the class</dd></dl>
  282. </li>
  283. </ul>
  284. <a name="parse(byte[])">
  285. <!-- -->
  286. </a>
  287. <ul class="blockList">
  288. <li class="blockList">
  289. <h4>parse</h4>
  290. <pre>public static&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.104">parse</a>(byte[]&nbsp;data)
  291. 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>
  292. <div class="block">Split the array into ExtraFields and populate them with the
  293. given data as local file data, throwing an exception if the
  294. data cannot be parsed.</div>
  295. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - an array of bytes as it appears in local file data</dd>
  296. <dt><span class="strong">Returns:</span></dt><dd>an array of ExtraFields</dd>
  297. <dt><span class="strong">Throws:</span></dt>
  298. <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>
  299. </li>
  300. </ul>
  301. <a name="parse(byte[], boolean)">
  302. <!-- -->
  303. </a>
  304. <ul class="blockList">
  305. <li class="blockList">
  306. <h4>parse</h4>
  307. <pre>public static&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.117">parse</a>(byte[]&nbsp;data,
  308. boolean&nbsp;local)
  309. 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>
  310. <div class="block">Split the array into ExtraFields and populate them with the
  311. given data, throwing an exception if the data cannot be parsed.</div>
  312. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - an array of bytes</dd><dd><code>local</code> - whether data originates from the local file data
  313. or the central directory</dd>
  314. <dt><span class="strong">Returns:</span></dt><dd>an array of ExtraFields</dd>
  315. <dt><span class="strong">Throws:</span></dt>
  316. <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>
  317. </li>
  318. </ul>
  319. <a name="parse(byte[], boolean, org.apache.commons.compress.archivers.zip.ExtraFieldUtils.UnparseableExtraField)">
  320. <!-- -->
  321. </a>
  322. <ul class="blockList">
  323. <li class="blockList">
  324. <h4>parse</h4>
  325. <pre>public static&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.135">parse</a>(byte[]&nbsp;data,
  326. boolean&nbsp;local,
  327. <a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.UnparseableExtraField.html" title="class in org.apache.commons.compress.archivers.zip">ExtraFieldUtils.UnparseableExtraField</a>&nbsp;onUnparseableData)
  328. 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>
  329. <div class="block">Split the array into ExtraFields and populate them with the
  330. given data.</div>
  331. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - an array of bytes</dd><dd><code>local</code> - whether data originates from the local file data
  332. or the central directory</dd><dd><code>onUnparseableData</code> - what to do if the extra field data
  333. cannot be parsed.</dd>
  334. <dt><span class="strong">Returns:</span></dt><dd>an array of ExtraFields</dd>
  335. <dt><span class="strong">Throws:</span></dt>
  336. <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><dt><span class="strong">Since:</span></dt>
  337. <dd>1.1</dd></dl>
  338. </li>
  339. </ul>
  340. <a name="mergeLocalFileDataData(org.apache.commons.compress.archivers.zip.ZipExtraField[])">
  341. <!-- -->
  342. </a>
  343. <ul class="blockList">
  344. <li class="blockList">
  345. <h4>mergeLocalFileDataData</h4>
  346. <pre>public static&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.199">mergeLocalFileDataData</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;data)</pre>
  347. <div class="block">Merges the local file data fields of the given ZipExtraFields.</div>
  348. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - an array of ExtraFiles</dd>
  349. <dt><span class="strong">Returns:</span></dt><dd>an array of bytes</dd></dl>
  350. </li>
  351. </ul>
  352. <a name="mergeCentralDirectoryData(org.apache.commons.compress.archivers.zip.ZipExtraField[])">
  353. <!-- -->
  354. </a>
  355. <ul class="blockListLast">
  356. <li class="blockList">
  357. <h4>mergeCentralDirectoryData</h4>
  358. <pre>public static&nbsp;byte[]&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html#line.238">mergeCentralDirectoryData</a>(<a href="../../../../../../org/apache/commons/compress/archivers/zip/ZipExtraField.html" title="interface in org.apache.commons.compress.archivers.zip">ZipExtraField</a>[]&nbsp;data)</pre>
  359. <div class="block">Merges the central directory fields of the given ZipExtraFields.</div>
  360. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - an array of ExtraFields</dd>
  361. <dt><span class="strong">Returns:</span></dt><dd>an array of bytes</dd></dl>
  362. </li>
  363. </ul>
  364. </li>
  365. </ul>
  366. </li>
  367. </ul>
  368. </div>
  369. </div>
  370. <!-- ========= END OF CLASS DATA ========= -->
  371. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  372. <div class="bottomNav"><a name="navbar_bottom">
  373. <!-- -->
  374. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  375. <!-- -->
  376. </a>
  377. <ul class="navList" title="Navigation">
  378. <li><a href="../../../../../../overview-summary.html">Overview</a></li>
  379. <li><a href="package-summary.html">Package</a></li>
  380. <li class="navBarCell1Rev">Class</li>
  381. <li><a href="class-use/ExtraFieldUtils.html">Use</a></li>
  382. <li><a href="package-tree.html">Tree</a></li>
  383. <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
  384. <li><a href="../../../../../../index-all.html">Index</a></li>
  385. <li><a href="../../../../../../help-doc.html">Help</a></li>
  386. </ul>
  387. </div>
  388. <div class="subNav">
  389. <ul class="navList">
  390. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/AsiExtraField.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
  391. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ExtraFieldUtils.UnparseableExtraField.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
  392. </ul>
  393. <ul class="navList">
  394. <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/ExtraFieldUtils.html" target="_top">Frames</a></li>
  395. <li><a href="ExtraFieldUtils.html" target="_top">No Frames</a></li>
  396. </ul>
  397. <ul class="navList" id="allclasses_navbar_bottom">
  398. <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
  399. </ul>
  400. <div>
  401. <script type="text/javascript"><!--
  402. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  403. if(window==top) {
  404. allClassesLink.style.display = "block";
  405. }
  406. else {
  407. allClassesLink.style.display = "none";
  408. }
  409. //-->
  410. </script>
  411. </div>
  412. <div>
  413. <ul class="subNavList">
  414. <li>Summary:&nbsp;</li>
  415. <li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
  416. <li>Field&nbsp;|&nbsp;</li>
  417. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  418. <li><a href="#method_summary">Method</a></li>
  419. </ul>
  420. <ul class="subNavList">
  421. <li>Detail:&nbsp;</li>
  422. <li>Field&nbsp;|&nbsp;</li>
  423. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  424. <li><a href="#method_detail">Method</a></li>
  425. </ul>
  426. </div>
  427. <a name="skip-navbar_bottom">
  428. <!-- -->
  429. </a></div>
  430. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  431. <p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  432. </body>
  433. </html>