ChangeSetPerformer.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  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>ChangeSetPerformer (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="ChangeSetPerformer (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/ChangeSetPerformer.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/changes/ChangeSet.html" title="class in org.apache.commons.compress.changes"><span class="strong">Prev Class</span></a></li>
  43. <li><a href="../../../../../org/apache/commons/compress/changes/ChangeSetResults.html" title="class in org.apache.commons.compress.changes"><span class="strong">Next Class</span></a></li>
  44. </ul>
  45. <ul class="navList">
  46. <li><a href="../../../../../index.html?org/apache/commons/compress/changes/ChangeSetPerformer.html" target="_top">Frames</a></li>
  47. <li><a href="ChangeSetPerformer.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>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.changes</div>
  86. <h2 title="Class ChangeSetPerformer" class="title">Class ChangeSetPerformer</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.changes.ChangeSetPerformer</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/changes/ChangeSetPerformer.html#line.44">ChangeSetPerformer</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">Performs ChangeSet operations on a stream.
  105. This class is thread safe and can be used multiple times.
  106. It operates on a copy of the ChangeSet. If the ChangeSet changes,
  107. a new Performer must be created.</div>
  108. <dl><dt><span class="strong">This class is immutable</span></dt>
  109. <dd></dd>
  110. <dt><span class="strong">This class is thread-safe</span></dt>
  111. <dd></dd></dl>
  112. </li>
  113. </ul>
  114. </div>
  115. <div class="summary">
  116. <ul class="blockList">
  117. <li class="blockList">
  118. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  119. <ul class="blockList">
  120. <li class="blockList"><a name="constructor_summary">
  121. <!-- -->
  122. </a>
  123. <h3>Constructor Summary</h3>
  124. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  125. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  126. <tr>
  127. <th class="colOne" scope="col">Constructor and Description</th>
  128. </tr>
  129. <tr class="altColor">
  130. <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/compress/changes/ChangeSetPerformer.html#ChangeSetPerformer(org.apache.commons.compress.changes.ChangeSet)">ChangeSetPerformer</a></strong>(<a href="../../../../../org/apache/commons/compress/changes/ChangeSet.html" title="class in org.apache.commons.compress.changes">ChangeSet</a>&nbsp;changeSet)</code>
  131. <div class="block">Constructs a ChangeSetPerformer with the changes from this ChangeSet</div>
  132. </td>
  133. </tr>
  134. </table>
  135. </li>
  136. </ul>
  137. <!-- ========== METHOD SUMMARY =========== -->
  138. <ul class="blockList">
  139. <li class="blockList"><a name="method_summary">
  140. <!-- -->
  141. </a>
  142. <h3>Method Summary</h3>
  143. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  144. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  145. <tr>
  146. <th class="colFirst" scope="col">Modifier and Type</th>
  147. <th class="colLast" scope="col">Method and Description</th>
  148. </tr>
  149. <tr class="altColor">
  150. <td class="colFirst"><code><a href="../../../../../org/apache/commons/compress/changes/ChangeSetResults.html" title="class in org.apache.commons.compress.changes">ChangeSetResults</a></code></td>
  151. <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/compress/changes/ChangeSetPerformer.html#perform(org.apache.commons.compress.archivers.ArchiveInputStream,%20org.apache.commons.compress.archivers.ArchiveOutputStream)">perform</a></strong>(<a href="../../../../../org/apache/commons/compress/archivers/ArchiveInputStream.html" title="class in org.apache.commons.compress.archivers">ArchiveInputStream</a>&nbsp;in,
  152. <a href="../../../../../org/apache/commons/compress/archivers/ArchiveOutputStream.html" title="class in org.apache.commons.compress.archivers">ArchiveOutputStream</a>&nbsp;out)</code>
  153. <div class="block">Performs all changes collected in this ChangeSet on the input stream and
  154. streams the result to the output stream.</div>
  155. </td>
  156. </tr>
  157. <tr class="rowColor">
  158. <td class="colFirst"><code><a href="../../../../../org/apache/commons/compress/changes/ChangeSetResults.html" title="class in org.apache.commons.compress.changes">ChangeSetResults</a></code></td>
  159. <td class="colLast"><code><strong><a href="../../../../../org/apache/commons/compress/changes/ChangeSetPerformer.html#perform(org.apache.commons.compress.archivers.zip.ZipFile,%20org.apache.commons.compress.archivers.ArchiveOutputStream)">perform</a></strong>(<a href="../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html" title="class in org.apache.commons.compress.archivers.zip">ZipFile</a>&nbsp;in,
  160. <a href="../../../../../org/apache/commons/compress/archivers/ArchiveOutputStream.html" title="class in org.apache.commons.compress.archivers">ArchiveOutputStream</a>&nbsp;out)</code>
  161. <div class="block">Performs all changes collected in this ChangeSet on the ZipFile and
  162. streams the result to the output stream.</div>
  163. </td>
  164. </tr>
  165. </table>
  166. <ul class="blockList">
  167. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  168. <!-- -->
  169. </a>
  170. <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>
  171. <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>
  172. </ul>
  173. </li>
  174. </ul>
  175. </li>
  176. </ul>
  177. </div>
  178. <div class="details">
  179. <ul class="blockList">
  180. <li class="blockList">
  181. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  182. <ul class="blockList">
  183. <li class="blockList"><a name="constructor_detail">
  184. <!-- -->
  185. </a>
  186. <h3>Constructor Detail</h3>
  187. <a name="ChangeSetPerformer(org.apache.commons.compress.changes.ChangeSet)">
  188. <!-- -->
  189. </a>
  190. <ul class="blockListLast">
  191. <li class="blockList">
  192. <h4>ChangeSetPerformer</h4>
  193. <pre>public&nbsp;<a href="../../../../../src-html/org/apache/commons/compress/changes/ChangeSetPerformer.html#line.51">ChangeSetPerformer</a>(<a href="../../../../../org/apache/commons/compress/changes/ChangeSet.html" title="class in org.apache.commons.compress.changes">ChangeSet</a>&nbsp;changeSet)</pre>
  194. <div class="block">Constructs a ChangeSetPerformer with the changes from this ChangeSet</div>
  195. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>changeSet</code> - the ChangeSet which operations are used for performing</dd></dl>
  196. </li>
  197. </ul>
  198. </li>
  199. </ul>
  200. <!-- ============ METHOD DETAIL ========== -->
  201. <ul class="blockList">
  202. <li class="blockList"><a name="method_detail">
  203. <!-- -->
  204. </a>
  205. <h3>Method Detail</h3>
  206. <a name="perform(org.apache.commons.compress.archivers.ArchiveInputStream, org.apache.commons.compress.archivers.ArchiveOutputStream)">
  207. <!-- -->
  208. </a>
  209. <ul class="blockList">
  210. <li class="blockList">
  211. <h4>perform</h4>
  212. <pre>public&nbsp;<a href="../../../../../org/apache/commons/compress/changes/ChangeSetResults.html" title="class in org.apache.commons.compress.changes">ChangeSetResults</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/compress/changes/ChangeSetPerformer.html#line.70">perform</a>(<a href="../../../../../org/apache/commons/compress/archivers/ArchiveInputStream.html" title="class in org.apache.commons.compress.archivers">ArchiveInputStream</a>&nbsp;in,
  213. <a href="../../../../../org/apache/commons/compress/archivers/ArchiveOutputStream.html" title="class in org.apache.commons.compress.archivers">ArchiveOutputStream</a>&nbsp;out)
  214. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  215. <div class="block">Performs all changes collected in this ChangeSet on the input stream and
  216. streams the result to the output stream. Perform may be called more than once.
  217. This method finishes the stream, no other entries should be added
  218. after that.</div>
  219. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the InputStream to perform the changes on</dd><dd><code>out</code> - the resulting OutputStream with all modifications</dd>
  220. <dt><span class="strong">Returns:</span></dt><dd>the results of this operation</dd>
  221. <dt><span class="strong">Throws:</span></dt>
  222. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an read/write error occurs</dd></dl>
  223. </li>
  224. </ul>
  225. <a name="perform(org.apache.commons.compress.archivers.zip.ZipFile, org.apache.commons.compress.archivers.ArchiveOutputStream)">
  226. <!-- -->
  227. </a>
  228. <ul class="blockListLast">
  229. <li class="blockList">
  230. <h4>perform</h4>
  231. <pre>public&nbsp;<a href="../../../../../org/apache/commons/compress/changes/ChangeSetResults.html" title="class in org.apache.commons.compress.changes">ChangeSetResults</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/compress/changes/ChangeSetPerformer.html#line.91">perform</a>(<a href="../../../../../org/apache/commons/compress/archivers/zip/ZipFile.html" title="class in org.apache.commons.compress.archivers.zip">ZipFile</a>&nbsp;in,
  232. <a href="../../../../../org/apache/commons/compress/archivers/ArchiveOutputStream.html" title="class in org.apache.commons.compress.archivers">ArchiveOutputStream</a>&nbsp;out)
  233. throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
  234. <div class="block">Performs all changes collected in this ChangeSet on the ZipFile and
  235. streams the result to the output stream. Perform may be called more than once.
  236. This method finishes the stream, no other entries should be added
  237. after that.</div>
  238. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the ZipFile to perform the changes on</dd><dd><code>out</code> - the resulting OutputStream with all modifications</dd>
  239. <dt><span class="strong">Returns:</span></dt><dd>the results of this operation</dd>
  240. <dt><span class="strong">Throws:</span></dt>
  241. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - if an read/write error occurs</dd><dt><span class="strong">Since:</span></dt>
  242. <dd>1.5</dd></dl>
  243. </li>
  244. </ul>
  245. </li>
  246. </ul>
  247. </li>
  248. </ul>
  249. </div>
  250. </div>
  251. <!-- ========= END OF CLASS DATA ========= -->
  252. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  253. <div class="bottomNav"><a name="navbar_bottom">
  254. <!-- -->
  255. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  256. <!-- -->
  257. </a>
  258. <ul class="navList" title="Navigation">
  259. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  260. <li><a href="package-summary.html">Package</a></li>
  261. <li class="navBarCell1Rev">Class</li>
  262. <li><a href="class-use/ChangeSetPerformer.html">Use</a></li>
  263. <li><a href="package-tree.html">Tree</a></li>
  264. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  265. <li><a href="../../../../../index-all.html">Index</a></li>
  266. <li><a href="../../../../../help-doc.html">Help</a></li>
  267. </ul>
  268. </div>
  269. <div class="subNav">
  270. <ul class="navList">
  271. <li><a href="../../../../../org/apache/commons/compress/changes/ChangeSet.html" title="class in org.apache.commons.compress.changes"><span class="strong">Prev Class</span></a></li>
  272. <li><a href="../../../../../org/apache/commons/compress/changes/ChangeSetResults.html" title="class in org.apache.commons.compress.changes"><span class="strong">Next Class</span></a></li>
  273. </ul>
  274. <ul class="navList">
  275. <li><a href="../../../../../index.html?org/apache/commons/compress/changes/ChangeSetPerformer.html" target="_top">Frames</a></li>
  276. <li><a href="ChangeSetPerformer.html" target="_top">No Frames</a></li>
  277. </ul>
  278. <ul class="navList" id="allclasses_navbar_bottom">
  279. <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
  280. </ul>
  281. <div>
  282. <script type="text/javascript"><!--
  283. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  284. if(window==top) {
  285. allClassesLink.style.display = "block";
  286. }
  287. else {
  288. allClassesLink.style.display = "none";
  289. }
  290. //-->
  291. </script>
  292. </div>
  293. <div>
  294. <ul class="subNavList">
  295. <li>Summary:&nbsp;</li>
  296. <li>Nested&nbsp;|&nbsp;</li>
  297. <li>Field&nbsp;|&nbsp;</li>
  298. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  299. <li><a href="#method_summary">Method</a></li>
  300. </ul>
  301. <ul class="subNavList">
  302. <li>Detail:&nbsp;</li>
  303. <li>Field&nbsp;|&nbsp;</li>
  304. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  305. <li><a href="#method_detail">Method</a></li>
  306. </ul>
  307. </div>
  308. <a name="skip-navbar_bottom">
  309. <!-- -->
  310. </a></div>
  311. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  312. <p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  313. </body>
  314. </html>