CRC32VerifyingInputStream.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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>CRC32VerifyingInputStream (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="CRC32VerifyingInputStream (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/CRC32VerifyingInputStream.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/utils/CountingOutputStream.html" title="class in org.apache.commons.compress.utils"><span class="strong">Prev Class</span></a></li>
  43. <li><a href="../../../../../org/apache/commons/compress/utils/FlushShieldFilterOutputStream.html" title="class in org.apache.commons.compress.utils"><span class="strong">Next Class</span></a></li>
  44. </ul>
  45. <ul class="navList">
  46. <li><a href="../../../../../index.html?org/apache/commons/compress/utils/CRC32VerifyingInputStream.html" target="_top">Frames</a></li>
  47. <li><a href="CRC32VerifyingInputStream.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="#methods_inherited_from_class_org.apache.commons.compress.utils.ChecksumVerifyingInputStream">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>Method</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.utils</div>
  86. <h2 title="Class CRC32VerifyingInputStream" class="title">Class CRC32VerifyingInputStream</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><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">java.io.InputStream</a></li>
  94. <li>
  95. <ul class="inheritance">
  96. <li><a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html" title="class in org.apache.commons.compress.utils">org.apache.commons.compress.utils.ChecksumVerifyingInputStream</a></li>
  97. <li>
  98. <ul class="inheritance">
  99. <li>org.apache.commons.compress.utils.CRC32VerifyingInputStream</li>
  100. </ul>
  101. </li>
  102. </ul>
  103. </li>
  104. </ul>
  105. </li>
  106. </ul>
  107. <div class="description">
  108. <ul class="blockList">
  109. <li class="blockList">
  110. <dl>
  111. <dt>All Implemented Interfaces:</dt>
  112. <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>
  113. </dl>
  114. <hr>
  115. <br>
  116. <pre>public class <a href="../../../../../src-html/org/apache/commons/compress/utils/CRC32VerifyingInputStream.html#line.29">CRC32VerifyingInputStream</a>
  117. extends <a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html" title="class in org.apache.commons.compress.utils">ChecksumVerifyingInputStream</a></pre>
  118. <div class="block">A stream that verifies the CRC of the data read once the stream is
  119. exhausted.</div>
  120. <dl><dt><span class="strong">Since:</span></dt>
  121. <dd>1.6</dd>
  122. <dt><span class="strong">This class is not thread-safe</span></dt>
  123. <dd></dd></dl>
  124. </li>
  125. </ul>
  126. </div>
  127. <div class="summary">
  128. <ul class="blockList">
  129. <li class="blockList">
  130. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  131. <ul class="blockList">
  132. <li class="blockList"><a name="constructor_summary">
  133. <!-- -->
  134. </a>
  135. <h3>Constructor Summary</h3>
  136. <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  137. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  138. <tr>
  139. <th class="colOne" scope="col">Constructor and Description</th>
  140. </tr>
  141. <tr class="altColor">
  142. <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/compress/utils/CRC32VerifyingInputStream.html#CRC32VerifyingInputStream(java.io.InputStream,%20long,%20int)">CRC32VerifyingInputStream</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;in,
  143. long&nbsp;size,
  144. int&nbsp;expectedCrc32)</code>&nbsp;</td>
  145. </tr>
  146. <tr class="rowColor">
  147. <td class="colOne"><code><strong><a href="../../../../../org/apache/commons/compress/utils/CRC32VerifyingInputStream.html#CRC32VerifyingInputStream(java.io.InputStream,%20long,%20long)">CRC32VerifyingInputStream</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;in,
  148. long&nbsp;size,
  149. long&nbsp;expectedCrc32)</code>&nbsp;</td>
  150. </tr>
  151. </table>
  152. </li>
  153. </ul>
  154. <!-- ========== METHOD SUMMARY =========== -->
  155. <ul class="blockList">
  156. <li class="blockList"><a name="method_summary">
  157. <!-- -->
  158. </a>
  159. <h3>Method Summary</h3>
  160. <ul class="blockList">
  161. <li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.compress.utils.ChecksumVerifyingInputStream">
  162. <!-- -->
  163. </a>
  164. <h3>Methods inherited from class&nbsp;org.apache.commons.compress.utils.<a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html" title="class in org.apache.commons.compress.utils">ChecksumVerifyingInputStream</a></h3>
  165. <code><a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html#close()">close</a>, <a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html#read()">read</a>, <a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html#read(byte[])">read</a>, <a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html#read(byte[],%20int,%20int)">read</a>, <a href="../../../../../org/apache/commons/compress/utils/ChecksumVerifyingInputStream.html#skip(long)">skip</a></code></li>
  166. </ul>
  167. <ul class="blockList">
  168. <li class="blockList"><a name="methods_inherited_from_class_java.io.InputStream">
  169. <!-- -->
  170. </a>
  171. <h3>Methods inherited from class&nbsp;java.io.<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></h3>
  172. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true#available()" title="class or interface in java.io">available</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true#mark(int)" title="class or interface in java.io">mark</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true#markSupported()" title="class or interface in java.io">markSupported</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true#reset()" title="class or interface in java.io">reset</a></code></li>
  173. </ul>
  174. <ul class="blockList">
  175. <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
  176. <!-- -->
  177. </a>
  178. <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>
  179. <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>
  180. </ul>
  181. </li>
  182. </ul>
  183. </li>
  184. </ul>
  185. </div>
  186. <div class="details">
  187. <ul class="blockList">
  188. <li class="blockList">
  189. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  190. <ul class="blockList">
  191. <li class="blockList"><a name="constructor_detail">
  192. <!-- -->
  193. </a>
  194. <h3>Constructor Detail</h3>
  195. <a name="CRC32VerifyingInputStream(java.io.InputStream, long, int)">
  196. <!-- -->
  197. </a>
  198. <ul class="blockList">
  199. <li class="blockList">
  200. <h4>CRC32VerifyingInputStream</h4>
  201. <pre>public&nbsp;<a href="../../../../../src-html/org/apache/commons/compress/utils/CRC32VerifyingInputStream.html#line.36">CRC32VerifyingInputStream</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;in,
  202. long&nbsp;size,
  203. int&nbsp;expectedCrc32)</pre>
  204. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the stream to wrap</dd><dd><code>size</code> - the of the stream's content</dd><dd><code>expectedCrc32</code> - the expected checksum</dd></dl>
  205. </li>
  206. </ul>
  207. <a name="CRC32VerifyingInputStream(java.io.InputStream, long, long)">
  208. <!-- -->
  209. </a>
  210. <ul class="blockListLast">
  211. <li class="blockList">
  212. <h4>CRC32VerifyingInputStream</h4>
  213. <pre>public&nbsp;<a href="../../../../../src-html/org/apache/commons/compress/utils/CRC32VerifyingInputStream.html#line.46">CRC32VerifyingInputStream</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;in,
  214. long&nbsp;size,
  215. long&nbsp;expectedCrc32)</pre>
  216. <dl><dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - the stream to wrap</dd><dd><code>size</code> - the of the stream's content</dd><dd><code>expectedCrc32</code> - the expected checksum</dd><dt><span class="strong">Since:</span></dt>
  217. <dd>1.7</dd></dl>
  218. </li>
  219. </ul>
  220. </li>
  221. </ul>
  222. </li>
  223. </ul>
  224. </div>
  225. </div>
  226. <!-- ========= END OF CLASS DATA ========= -->
  227. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  228. <div class="bottomNav"><a name="navbar_bottom">
  229. <!-- -->
  230. </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
  231. <!-- -->
  232. </a>
  233. <ul class="navList" title="Navigation">
  234. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  235. <li><a href="package-summary.html">Package</a></li>
  236. <li class="navBarCell1Rev">Class</li>
  237. <li><a href="class-use/CRC32VerifyingInputStream.html">Use</a></li>
  238. <li><a href="package-tree.html">Tree</a></li>
  239. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  240. <li><a href="../../../../../index-all.html">Index</a></li>
  241. <li><a href="../../../../../help-doc.html">Help</a></li>
  242. </ul>
  243. </div>
  244. <div class="subNav">
  245. <ul class="navList">
  246. <li><a href="../../../../../org/apache/commons/compress/utils/CountingOutputStream.html" title="class in org.apache.commons.compress.utils"><span class="strong">Prev Class</span></a></li>
  247. <li><a href="../../../../../org/apache/commons/compress/utils/FlushShieldFilterOutputStream.html" title="class in org.apache.commons.compress.utils"><span class="strong">Next Class</span></a></li>
  248. </ul>
  249. <ul class="navList">
  250. <li><a href="../../../../../index.html?org/apache/commons/compress/utils/CRC32VerifyingInputStream.html" target="_top">Frames</a></li>
  251. <li><a href="CRC32VerifyingInputStream.html" target="_top">No Frames</a></li>
  252. </ul>
  253. <ul class="navList" id="allclasses_navbar_bottom">
  254. <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
  255. </ul>
  256. <div>
  257. <script type="text/javascript"><!--
  258. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  259. if(window==top) {
  260. allClassesLink.style.display = "block";
  261. }
  262. else {
  263. allClassesLink.style.display = "none";
  264. }
  265. //-->
  266. </script>
  267. </div>
  268. <div>
  269. <ul class="subNavList">
  270. <li>Summary:&nbsp;</li>
  271. <li>Nested&nbsp;|&nbsp;</li>
  272. <li>Field&nbsp;|&nbsp;</li>
  273. <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
  274. <li><a href="#methods_inherited_from_class_org.apache.commons.compress.utils.ChecksumVerifyingInputStream">Method</a></li>
  275. </ul>
  276. <ul class="subNavList">
  277. <li>Detail:&nbsp;</li>
  278. <li>Field&nbsp;|&nbsp;</li>
  279. <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
  280. <li>Method</li>
  281. </ul>
  282. </div>
  283. <a name="skip-navbar_bottom">
  284. <!-- -->
  285. </a></div>
  286. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  287. <p class="legalCopy"><small>Copyright &#169; 2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  288. </body>
  289. </html>