StreamCompressor.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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>StreamCompressor (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="StreamCompressor (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/StreamCompressor.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/ScatterZipOutputStream.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/UnicodeCommentExtraField.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/StreamCompressor.html" target="_top">Frames</a></li>
  47. <li><a href="StreamCompressor.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>Constr&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>Constr&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 StreamCompressor" class="title">Class StreamCompressor</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.StreamCompressor</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/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></dd>
  103. </dl>
  104. <hr>
  105. <br>
  106. <pre>public abstract class <a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.40">StreamCompressor</a>
  107. extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
  108. implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></pre>
  109. <div class="block">Encapsulates a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/Deflater.html?is-external=true" title="class or interface in java.util.zip"><code>Deflater</code></a> and crc calculator, handling multiple types of output streams.
  110. Currently <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipEntry.html?is-external=true#DEFLATED" title="class or interface in java.util.zip"><code>ZipEntry.DEFLATED</code></a> and <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipEntry.html?is-external=true#STORED" title="class or interface in java.util.zip"><code>ZipEntry.STORED</code></a> are the only
  111. supported compression methods.</div>
  112. <dl><dt><span class="strong">Since:</span></dt>
  113. <dd>1.10</dd></dl>
  114. </li>
  115. </ul>
  116. </div>
  117. <div class="summary">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <!-- ========== METHOD SUMMARY =========== -->
  121. <ul class="blockList">
  122. <li class="blockList"><a name="method_summary">
  123. <!-- -->
  124. </a>
  125. <h3>Method Summary</h3>
  126. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  127. <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
  128. <tr>
  129. <th class="colFirst" scope="col">Modifier and Type</th>
  130. <th class="colLast" scope="col">Method and Description</th>
  131. </tr>
  132. <tr class="altColor">
  133. <td class="colFirst"><code>void</code></td>
  134. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#close()">close</a></strong>()</code>&nbsp;</td>
  135. </tr>
  136. <tr class="rowColor">
  137. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html" title="class in org.apache.commons.compress.archivers.zip">StreamCompressor</a></code></td>
  138. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#create(int,%20org.apache.commons.compress.parallel.ScatterGatherBackingStore)">create</a></strong>(int&nbsp;compressionLevel,
  139. <a href="../../../../../../org/apache/commons/compress/parallel/ScatterGatherBackingStore.html" title="interface in org.apache.commons.compress.parallel">ScatterGatherBackingStore</a>&nbsp;bs)</code>
  140. <div class="block">Create a stream compressor with the given compression level.</div>
  141. </td>
  142. </tr>
  143. <tr class="altColor">
  144. <td class="colFirst"><code>static <a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html" title="class in org.apache.commons.compress.archivers.zip">StreamCompressor</a></code></td>
  145. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#create(org.apache.commons.compress.parallel.ScatterGatherBackingStore)">create</a></strong>(<a href="../../../../../../org/apache/commons/compress/parallel/ScatterGatherBackingStore.html" title="interface in org.apache.commons.compress.parallel">ScatterGatherBackingStore</a>&nbsp;bs)</code>
  146. <div class="block">Create a stream compressor with the default compression level.</div>
  147. </td>
  148. </tr>
  149. <tr class="rowColor">
  150. <td class="colFirst"><code>void</code></td>
  151. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#deflate(java.io.InputStream,%20int)">deflate</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;source,
  152. int&nbsp;method)</code>
  153. <div class="block">Deflate the given source using the supplied compression method</div>
  154. </td>
  155. </tr>
  156. <tr class="altColor">
  157. <td class="colFirst"><code>long</code></td>
  158. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#getBytesRead()">getBytesRead</a></strong>()</code>
  159. <div class="block">Return the number of bytes read from the source stream</div>
  160. </td>
  161. </tr>
  162. <tr class="rowColor">
  163. <td class="colFirst"><code>long</code></td>
  164. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#getBytesWrittenForLastEntry()">getBytesWrittenForLastEntry</a></strong>()</code>
  165. <div class="block">The number of bytes written to the output for the last entry</div>
  166. </td>
  167. </tr>
  168. <tr class="altColor">
  169. <td class="colFirst"><code>long</code></td>
  170. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#getCrc32()">getCrc32</a></strong>()</code>
  171. <div class="block">The crc32 of the last deflated file</div>
  172. </td>
  173. </tr>
  174. <tr class="rowColor">
  175. <td class="colFirst"><code>long</code></td>
  176. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#getTotalBytesWritten()">getTotalBytesWritten</a></strong>()</code>
  177. <div class="block">The total number of bytes written to the output for all files</div>
  178. </td>
  179. </tr>
  180. <tr class="altColor">
  181. <td class="colFirst"><code>void</code></td>
  182. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#writeCounted(byte[])">writeCounted</a></strong>(byte[]&nbsp;data)</code>&nbsp;</td>
  183. </tr>
  184. <tr class="rowColor">
  185. <td class="colFirst"><code>void</code></td>
  186. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#writeCounted(byte[],%20int,%20int)">writeCounted</a></strong>(byte[]&nbsp;data,
  187. int&nbsp;offset,
  188. int&nbsp;length)</code>&nbsp;</td>
  189. </tr>
  190. <tr class="altColor">
  191. <td class="colFirst"><code>protected abstract void</code></td>
  192. <td class="colLast"><code><strong><a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html#writeOut(byte[],%20int,%20int)">writeOut</a></strong>(byte[]&nbsp;data,
  193. int&nbsp;offset,
  194. int&nbsp;length)</code>&nbsp;</td>
  195. </tr>
  196. </table>
  197. <ul class="blockList">
  198. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  199. <!-- -->
  200. </a>
  201. <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>
  202. <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>
  203. </ul>
  204. </li>
  205. </ul>
  206. </li>
  207. </ul>
  208. </div>
  209. <div class="details">
  210. <ul class="blockList">
  211. <li class="blockList">
  212. <!-- ============ METHOD DETAIL ========== -->
  213. <ul class="blockList">
  214. <li class="blockList"><a name="method_detail">
  215. <!-- -->
  216. </a>
  217. <h3>Method Detail</h3>
  218. <a name="create(int, org.apache.commons.compress.parallel.ScatterGatherBackingStore)">
  219. <!-- -->
  220. </a>
  221. <ul class="blockList">
  222. <li class="blockList">
  223. <h4>create</h4>
  224. <pre>public static&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html" title="class in org.apache.commons.compress.archivers.zip">StreamCompressor</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.118">create</a>(int&nbsp;compressionLevel,
  225. <a href="../../../../../../org/apache/commons/compress/parallel/ScatterGatherBackingStore.html" title="interface in org.apache.commons.compress.parallel">ScatterGatherBackingStore</a>&nbsp;bs)</pre>
  226. <div class="block">Create a stream compressor with the given compression level.</div>
  227. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>compressionLevel</code> - The <a href="http://docs.oracle.com/javase/7/docs/api/java/util/zip/Deflater.html?is-external=true" title="class or interface in java.util.zip"><code>Deflater</code></a> compression level</dd><dd><code>bs</code> - The ScatterGatherBackingStore to receive output</dd>
  228. <dt><span class="strong">Returns:</span></dt><dd>A stream compressor</dd></dl>
  229. </li>
  230. </ul>
  231. <a name="create(org.apache.commons.compress.parallel.ScatterGatherBackingStore)">
  232. <!-- -->
  233. </a>
  234. <ul class="blockList">
  235. <li class="blockList">
  236. <h4>create</h4>
  237. <pre>public static&nbsp;<a href="../../../../../../org/apache/commons/compress/archivers/zip/StreamCompressor.html" title="class in org.apache.commons.compress.archivers.zip">StreamCompressor</a>&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.129">create</a>(<a href="../../../../../../org/apache/commons/compress/parallel/ScatterGatherBackingStore.html" title="interface in org.apache.commons.compress.parallel">ScatterGatherBackingStore</a>&nbsp;bs)</pre>
  238. <div class="block">Create a stream compressor with the default compression level.</div>
  239. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>bs</code> - The ScatterGatherBackingStore to receive output</dd>
  240. <dt><span class="strong">Returns:</span></dt><dd>A stream compressor</dd></dl>
  241. </li>
  242. </ul>
  243. <a name="getCrc32()">
  244. <!-- -->
  245. </a>
  246. <ul class="blockList">
  247. <li class="blockList">
  248. <h4>getCrc32</h4>
  249. <pre>public&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.139">getCrc32</a>()</pre>
  250. <div class="block">The crc32 of the last deflated file</div>
  251. <dl><dt><span class="strong">Returns:</span></dt><dd>the crc32</dd></dl>
  252. </li>
  253. </ul>
  254. <a name="getBytesRead()">
  255. <!-- -->
  256. </a>
  257. <ul class="blockList">
  258. <li class="blockList">
  259. <h4>getBytesRead</h4>
  260. <pre>public&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.148">getBytesRead</a>()</pre>
  261. <div class="block">Return the number of bytes read from the source stream</div>
  262. <dl><dt><span class="strong">Returns:</span></dt><dd>The number of bytes read, never negative</dd></dl>
  263. </li>
  264. </ul>
  265. <a name="getBytesWrittenForLastEntry()">
  266. <!-- -->
  267. </a>
  268. <ul class="blockList">
  269. <li class="blockList">
  270. <h4>getBytesWrittenForLastEntry</h4>
  271. <pre>public&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.157">getBytesWrittenForLastEntry</a>()</pre>
  272. <div class="block">The number of bytes written to the output for the last entry</div>
  273. <dl><dt><span class="strong">Returns:</span></dt><dd>The number of bytes, never negative</dd></dl>
  274. </li>
  275. </ul>
  276. <a name="getTotalBytesWritten()">
  277. <!-- -->
  278. </a>
  279. <ul class="blockList">
  280. <li class="blockList">
  281. <h4>getTotalBytesWritten</h4>
  282. <pre>public&nbsp;long&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.166">getTotalBytesWritten</a>()</pre>
  283. <div class="block">The total number of bytes written to the output for all files</div>
  284. <dl><dt><span class="strong">Returns:</span></dt><dd>The number of bytes, never negative</dd></dl>
  285. </li>
  286. </ul>
  287. <a name="deflate(java.io.InputStream, int)">
  288. <!-- -->
  289. </a>
  290. <ul class="blockList">
  291. <li class="blockList">
  292. <h4>deflate</h4>
  293. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.179">deflate</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;source,
  294. int&nbsp;method)
  295. 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>
  296. <div class="block">Deflate the given source using the supplied compression method</div>
  297. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>source</code> - The source to compress</dd><dd><code>method</code> - The #ZipArchiveEntry compression method</dd>
  298. <dt><span class="strong">Throws:</span></dt>
  299. <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> - When failures happen</dd></dl>
  300. </li>
  301. </ul>
  302. <a name="close()">
  303. <!-- -->
  304. </a>
  305. <ul class="blockList">
  306. <li class="blockList">
  307. <h4>close</h4>
  308. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.222">close</a>()
  309. 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>
  310. <dl>
  311. <dt><strong>Specified by:</strong></dt>
  312. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true#close()" title="class or interface in java.io">close</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a></code></dd>
  313. <dt><strong>Specified by:</strong></dt>
  314. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true#close()" title="class or interface in java.lang">close</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/AutoCloseable.html?is-external=true" title="class or interface in java.lang">AutoCloseable</a></code></dd>
  315. <dt><span class="strong">Throws:</span></dt>
  316. <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></dd></dl>
  317. </li>
  318. </ul>
  319. <a name="writeCounted(byte[])">
  320. <!-- -->
  321. </a>
  322. <ul class="blockList">
  323. <li class="blockList">
  324. <h4>writeCounted</h4>
  325. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.268">writeCounted</a>(byte[]&nbsp;data)
  326. 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>
  327. <dl><dt><span class="strong">Throws:</span></dt>
  328. <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></dd></dl>
  329. </li>
  330. </ul>
  331. <a name="writeCounted(byte[], int, int)">
  332. <!-- -->
  333. </a>
  334. <ul class="blockList">
  335. <li class="blockList">
  336. <h4>writeCounted</h4>
  337. <pre>public&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.272">writeCounted</a>(byte[]&nbsp;data,
  338. int&nbsp;offset,
  339. int&nbsp;length)
  340. 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>
  341. <dl><dt><span class="strong">Throws:</span></dt>
  342. <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></dd></dl>
  343. </li>
  344. </ul>
  345. <a name="writeOut(byte[], int, int)">
  346. <!-- -->
  347. </a>
  348. <ul class="blockListLast">
  349. <li class="blockList">
  350. <h4>writeOut</h4>
  351. <pre>protected abstract&nbsp;void&nbsp;<a href="../../../../../../src-html/org/apache/commons/compress/archivers/zip/StreamCompressor.html#line.278">writeOut</a>(byte[]&nbsp;data,
  352. int&nbsp;offset,
  353. int&nbsp;length)
  354. 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>
  355. <dl><dt><span class="strong">Throws:</span></dt>
  356. <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></dd></dl>
  357. </li>
  358. </ul>
  359. </li>
  360. </ul>
  361. </li>
  362. </ul>
  363. </div>
  364. </div>
  365. <!-- ========= END OF CLASS DATA ========= -->
  366. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  367. <div class="bottomNav"><a name="navbar_bottom">
  368. <!-- -->
  369. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  370. <!-- -->
  371. </a>
  372. <ul class="navList" title="Navigation">
  373. <li><a href="../../../../../../overview-summary.html">Overview</a></li>
  374. <li><a href="package-summary.html">Package</a></li>
  375. <li class="navBarCell1Rev">Class</li>
  376. <li><a href="class-use/StreamCompressor.html">Use</a></li>
  377. <li><a href="package-tree.html">Tree</a></li>
  378. <li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
  379. <li><a href="../../../../../../index-all.html">Index</a></li>
  380. <li><a href="../../../../../../help-doc.html">Help</a></li>
  381. </ul>
  382. </div>
  383. <div class="subNav">
  384. <ul class="navList">
  385. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/ScatterZipOutputStream.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Prev Class</span></a></li>
  386. <li><a href="../../../../../../org/apache/commons/compress/archivers/zip/UnicodeCommentExtraField.html" title="class in org.apache.commons.compress.archivers.zip"><span class="strong">Next Class</span></a></li>
  387. </ul>
  388. <ul class="navList">
  389. <li><a href="../../../../../../index.html?org/apache/commons/compress/archivers/zip/StreamCompressor.html" target="_top">Frames</a></li>
  390. <li><a href="StreamCompressor.html" target="_top">No Frames</a></li>
  391. </ul>
  392. <ul class="navList" id="allclasses_navbar_bottom">
  393. <li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
  394. </ul>
  395. <div>
  396. <script type="text/javascript"><!--
  397. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  398. if(window==top) {
  399. allClassesLink.style.display = "block";
  400. }
  401. else {
  402. allClassesLink.style.display = "none";
  403. }
  404. //-->
  405. </script>
  406. </div>
  407. <div>
  408. <ul class="subNavList">
  409. <li>Summary:&nbsp;</li>
  410. <li>Nested&nbsp;|&nbsp;</li>
  411. <li>Field&nbsp;|&nbsp;</li>
  412. <li>Constr&nbsp;|&nbsp;</li>
  413. <li><a href="#method_summary">Method</a></li>
  414. </ul>
  415. <ul class="subNavList">
  416. <li>Detail:&nbsp;</li>
  417. <li>Field&nbsp;|&nbsp;</li>
  418. <li>Constr&nbsp;|&nbsp;</li>
  419. <li><a href="#method_detail">Method</a></li>
  420. </ul>
  421. </div>
  422. <a name="skip-navbar_bottom">
  423. <!-- -->
  424. </a></div>
  425. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  426. <p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  427. </body>
  428. </html>