CountingInputStream.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  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. <!-- Generated by javadoc -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <title>CountingInputStream (Apache Commons IO 2.6 API)</title>
  8. <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../../../../../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="CountingInputStream (Apache Commons IO 2.6 API)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10};
  22. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  41. <li><a href="package-summary.html">Package</a></li>
  42. <li class="navBarCell1Rev">Class</li>
  43. <li><a href="class-use/CountingInputStream.html">Use</a></li>
  44. <li><a href="package-tree.html">Tree</a></li>
  45. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  46. <li><a href="../../../../../index-all.html">Index</a></li>
  47. <li><a href="../../../../../help-doc.html">Help</a></li>
  48. </ul>
  49. </div>
  50. <div class="subNav">
  51. <ul class="navList">
  52. <li><a href="../../../../../org/apache/commons/io/input/CloseShieldInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  53. <li><a href="../../../../../org/apache/commons/io/input/DemuxInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  54. </ul>
  55. <ul class="navList">
  56. <li><a href="../../../../../index.html?org/apache/commons/io/input/CountingInputStream.html" target="_top">Frames</a></li>
  57. <li><a href="CountingInputStream.html" target="_top">No&nbsp;Frames</a></li>
  58. </ul>
  59. <ul class="navList" id="allclasses_navbar_top">
  60. <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  61. </ul>
  62. <div>
  63. <script type="text/javascript"><!--
  64. allClassesLink = document.getElementById("allclasses_navbar_top");
  65. if(window==top) {
  66. allClassesLink.style.display = "block";
  67. }
  68. else {
  69. allClassesLink.style.display = "none";
  70. }
  71. //-->
  72. </script>
  73. </div>
  74. <div>
  75. <ul class="subNavList">
  76. <li>Summary:&nbsp;</li>
  77. <li>Nested&nbsp;|&nbsp;</li>
  78. <li><a href="#fields.inherited.from.class.java.io.FilterInputStream">Field</a>&nbsp;|&nbsp;</li>
  79. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  80. <li><a href="#method.summary">Method</a></li>
  81. </ul>
  82. <ul class="subNavList">
  83. <li>Detail:&nbsp;</li>
  84. <li>Field&nbsp;|&nbsp;</li>
  85. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  86. <li><a href="#method.detail">Method</a></li>
  87. </ul>
  88. </div>
  89. <a name="skip.navbar.top">
  90. <!-- -->
  91. </a></div>
  92. <!-- ========= END OF TOP NAVBAR ========= -->
  93. <!-- ======== START OF CLASS DATA ======== -->
  94. <div class="header">
  95. <div class="subTitle">org.apache.commons.io.input</div>
  96. <h2 title="Class CountingInputStream" class="title">Class CountingInputStream</h2>
  97. </div>
  98. <div class="contentContainer">
  99. <ul class="inheritance">
  100. <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>
  101. <li>
  102. <ul class="inheritance">
  103. <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>
  104. <li>
  105. <ul class="inheritance">
  106. <li><a href="http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">java.io.FilterInputStream</a></li>
  107. <li>
  108. <ul class="inheritance">
  109. <li><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">org.apache.commons.io.input.ProxyInputStream</a></li>
  110. <li>
  111. <ul class="inheritance">
  112. <li>org.apache.commons.io.input.CountingInputStream</li>
  113. </ul>
  114. </li>
  115. </ul>
  116. </li>
  117. </ul>
  118. </li>
  119. </ul>
  120. </li>
  121. </ul>
  122. <div class="description">
  123. <ul class="blockList">
  124. <li class="blockList">
  125. <dl>
  126. <dt>All Implemented Interfaces:</dt>
  127. <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>
  128. </dl>
  129. <hr>
  130. <br>
  131. <pre>public class <span class="typeNameLabel">CountingInputStream</span>
  132. extends <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></pre>
  133. <div class="block">A decorating input stream that counts the number of bytes that have passed
  134. through the stream so far.
  135. <p>
  136. A typical use case would be during debugging, to ensure that data is being
  137. read as expected.</div>
  138. </li>
  139. </ul>
  140. </div>
  141. <div class="summary">
  142. <ul class="blockList">
  143. <li class="blockList">
  144. <!-- =========== FIELD SUMMARY =========== -->
  145. <ul class="blockList">
  146. <li class="blockList"><a name="field.summary">
  147. <!-- -->
  148. </a>
  149. <h3>Field Summary</h3>
  150. <ul class="blockList">
  151. <li class="blockList"><a name="fields.inherited.from.class.java.io.FilterInputStream">
  152. <!-- -->
  153. </a>
  154. <h3>Fields inherited from class&nbsp;java.io.<a href="http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</a></h3>
  155. <code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/FilterInputStream.html?is-external=true#in" title="class or interface in java.io">in</a></code></li>
  156. </ul>
  157. </li>
  158. </ul>
  159. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  160. <ul class="blockList">
  161. <li class="blockList"><a name="constructor.summary">
  162. <!-- -->
  163. </a>
  164. <h3>Constructor Summary</h3>
  165. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  166. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  167. <tr>
  168. <th class="colOne" scope="col">Constructor and Description</th>
  169. </tr>
  170. <tr class="altColor">
  171. <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#CountingInputStream-java.io.InputStream-">CountingInputStream</a></span>(<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)</code>
  172. <div class="block">Constructs a new CountingInputStream.</div>
  173. </td>
  174. </tr>
  175. </table>
  176. </li>
  177. </ul>
  178. <!-- ========== METHOD SUMMARY =========== -->
  179. <ul class="blockList">
  180. <li class="blockList"><a name="method.summary">
  181. <!-- -->
  182. </a>
  183. <h3>Method Summary</h3>
  184. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  185. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  186. <tr>
  187. <th class="colFirst" scope="col">Modifier and Type</th>
  188. <th class="colLast" scope="col">Method and Description</th>
  189. </tr>
  190. <tr id="i0" class="altColor">
  191. <td class="colFirst"><code>protected void</code></td>
  192. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#afterRead-int-">afterRead</a></span>(int&nbsp;n)</code>
  193. <div class="block">Adds the number of read bytes to the count.</div>
  194. </td>
  195. </tr>
  196. <tr id="i1" class="rowColor">
  197. <td class="colFirst"><code>long</code></td>
  198. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#getByteCount--">getByteCount</a></span>()</code>
  199. <div class="block">The number of bytes that have passed through this stream.</div>
  200. </td>
  201. </tr>
  202. <tr id="i2" class="altColor">
  203. <td class="colFirst"><code>int</code></td>
  204. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#getCount--">getCount</a></span>()</code>
  205. <div class="block">The number of bytes that have passed through this stream.</div>
  206. </td>
  207. </tr>
  208. <tr id="i3" class="rowColor">
  209. <td class="colFirst"><code>long</code></td>
  210. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#resetByteCount--">resetByteCount</a></span>()</code>
  211. <div class="block">Set the byte count back to 0.</div>
  212. </td>
  213. </tr>
  214. <tr id="i4" class="altColor">
  215. <td class="colFirst"><code>int</code></td>
  216. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#resetCount--">resetCount</a></span>()</code>
  217. <div class="block">Set the byte count back to 0.</div>
  218. </td>
  219. </tr>
  220. <tr id="i5" class="rowColor">
  221. <td class="colFirst"><code>long</code></td>
  222. <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#skip-long-">skip</a></span>(long&nbsp;length)</code>
  223. <div class="block">Skips the stream over the specified number of bytes, adding the skipped
  224. amount to the count.</div>
  225. </td>
  226. </tr>
  227. </table>
  228. <ul class="blockList">
  229. <li class="blockList"><a name="methods.inherited.from.class.org.apache.commons.io.input.ProxyInputStream">
  230. <!-- -->
  231. </a>
  232. <h3>Methods inherited from class&nbsp;org.apache.commons.io.input.<a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></h3>
  233. <code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#available--">available</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#beforeRead-int-">beforeRead</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#close--">close</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#handleIOException-java.io.IOException-">handleIOException</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#mark-int-">mark</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#markSupported--">markSupported</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#read--">read</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#read-byte:A-">read</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#read-byte:A-int-int-">read</a>, <a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#reset--">reset</a></code></li>
  234. </ul>
  235. <ul class="blockList">
  236. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  237. <!-- -->
  238. </a>
  239. <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>
  240. <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-int-" title="class or interface in java.lang">wait</a></code></li>
  241. </ul>
  242. </li>
  243. </ul>
  244. </li>
  245. </ul>
  246. </div>
  247. <div class="details">
  248. <ul class="blockList">
  249. <li class="blockList">
  250. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  251. <ul class="blockList">
  252. <li class="blockList"><a name="constructor.detail">
  253. <!-- -->
  254. </a>
  255. <h3>Constructor Detail</h3>
  256. <a name="CountingInputStream-java.io.InputStream-">
  257. <!-- -->
  258. </a>
  259. <ul class="blockListLast">
  260. <li class="blockList">
  261. <h4>CountingInputStream</h4>
  262. <pre>public&nbsp;CountingInputStream(<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)</pre>
  263. <div class="block">Constructs a new CountingInputStream.</div>
  264. <dl>
  265. <dt><span class="paramLabel">Parameters:</span></dt>
  266. <dd><code>in</code> - the InputStream to delegate to</dd>
  267. </dl>
  268. </li>
  269. </ul>
  270. </li>
  271. </ul>
  272. <!-- ============ METHOD DETAIL ========== -->
  273. <ul class="blockList">
  274. <li class="blockList"><a name="method.detail">
  275. <!-- -->
  276. </a>
  277. <h3>Method Detail</h3>
  278. <a name="skip-long-">
  279. <!-- -->
  280. </a>
  281. <ul class="blockList">
  282. <li class="blockList">
  283. <h4>skip</h4>
  284. <pre>public&nbsp;long&nbsp;skip(long&nbsp;length)
  285. 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>
  286. <div class="block">Skips the stream over the specified number of bytes, adding the skipped
  287. amount to the count.</div>
  288. <dl>
  289. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  290. <dd><code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#skip-long-">skip</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></code></dd>
  291. <dt><span class="paramLabel">Parameters:</span></dt>
  292. <dd><code>length</code> - the number of bytes to skip</dd>
  293. <dt><span class="returnLabel">Returns:</span></dt>
  294. <dd>the actual number of bytes skipped</dd>
  295. <dt><span class="throwsLabel">Throws:</span></dt>
  296. <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 I/O error occurs</dd>
  297. <dt><span class="seeLabel">See Also:</span></dt>
  298. <dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true#skip-long-" title="class or interface in java.io"><code>InputStream.skip(long)</code></a></dd>
  299. </dl>
  300. </li>
  301. </ul>
  302. <a name="afterRead-int-">
  303. <!-- -->
  304. </a>
  305. <ul class="blockList">
  306. <li class="blockList">
  307. <h4>afterRead</h4>
  308. <pre>protected&nbsp;void&nbsp;afterRead(int&nbsp;n)</pre>
  309. <div class="block">Adds the number of read bytes to the count.</div>
  310. <dl>
  311. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  312. <dd><code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html#afterRead-int-">afterRead</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/io/input/ProxyInputStream.html" title="class in org.apache.commons.io.input">ProxyInputStream</a></code></dd>
  313. <dt><span class="paramLabel">Parameters:</span></dt>
  314. <dd><code>n</code> - number of bytes read, or -1 if no more bytes are available</dd>
  315. <dt><span class="simpleTagLabel">Since:</span></dt>
  316. <dd>2.0</dd>
  317. </dl>
  318. </li>
  319. </ul>
  320. <a name="getCount--">
  321. <!-- -->
  322. </a>
  323. <ul class="blockList">
  324. <li class="blockList">
  325. <h4>getCount</h4>
  326. <pre>public&nbsp;int&nbsp;getCount()</pre>
  327. <div class="block">The number of bytes that have passed through this stream.
  328. <p>
  329. NOTE: From v1.3 this method throws an ArithmeticException if the
  330. count is greater than can be expressed by an <code>int</code>.
  331. See <a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#getByteCount--"><code>getByteCount()</code></a> for a method using a <code>long</code>.</div>
  332. <dl>
  333. <dt><span class="returnLabel">Returns:</span></dt>
  334. <dd>the number of bytes accumulated</dd>
  335. <dt><span class="throwsLabel">Throws:</span></dt>
  336. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the byte count is too large</dd>
  337. </dl>
  338. </li>
  339. </ul>
  340. <a name="resetCount--">
  341. <!-- -->
  342. </a>
  343. <ul class="blockList">
  344. <li class="blockList">
  345. <h4>resetCount</h4>
  346. <pre>public&nbsp;int&nbsp;resetCount()</pre>
  347. <div class="block">Set the byte count back to 0.
  348. <p>
  349. NOTE: From v1.3 this method throws an ArithmeticException if the
  350. count is greater than can be expressed by an <code>int</code>.
  351. See <a href="../../../../../org/apache/commons/io/input/CountingInputStream.html#resetByteCount--"><code>resetByteCount()</code></a> for a method using a <code>long</code>.</div>
  352. <dl>
  353. <dt><span class="returnLabel">Returns:</span></dt>
  354. <dd>the count previous to resetting</dd>
  355. <dt><span class="throwsLabel">Throws:</span></dt>
  356. <dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArithmeticException.html?is-external=true" title="class or interface in java.lang">ArithmeticException</a></code> - if the byte count is too large</dd>
  357. </dl>
  358. </li>
  359. </ul>
  360. <a name="getByteCount--">
  361. <!-- -->
  362. </a>
  363. <ul class="blockList">
  364. <li class="blockList">
  365. <h4>getByteCount</h4>
  366. <pre>public&nbsp;long&nbsp;getByteCount()</pre>
  367. <div class="block">The number of bytes that have passed through this stream.
  368. <p>
  369. NOTE: This method is an alternative for <code>getCount()</code>
  370. and was added because that method returns an integer which will
  371. result in incorrect count for files over 2GB.</div>
  372. <dl>
  373. <dt><span class="returnLabel">Returns:</span></dt>
  374. <dd>the number of bytes accumulated</dd>
  375. <dt><span class="simpleTagLabel">Since:</span></dt>
  376. <dd>1.3</dd>
  377. </dl>
  378. </li>
  379. </ul>
  380. <a name="resetByteCount--">
  381. <!-- -->
  382. </a>
  383. <ul class="blockListLast">
  384. <li class="blockList">
  385. <h4>resetByteCount</h4>
  386. <pre>public&nbsp;long&nbsp;resetByteCount()</pre>
  387. <div class="block">Set the byte count back to 0.
  388. <p>
  389. NOTE: This method is an alternative for <code>resetCount()</code>
  390. and was added because that method returns an integer which will
  391. result in incorrect count for files over 2GB.</div>
  392. <dl>
  393. <dt><span class="returnLabel">Returns:</span></dt>
  394. <dd>the count previous to resetting</dd>
  395. <dt><span class="simpleTagLabel">Since:</span></dt>
  396. <dd>1.3</dd>
  397. </dl>
  398. </li>
  399. </ul>
  400. </li>
  401. </ul>
  402. </li>
  403. </ul>
  404. </div>
  405. </div>
  406. <!-- ========= END OF CLASS DATA ========= -->
  407. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  408. <div class="bottomNav"><a name="navbar.bottom">
  409. <!-- -->
  410. </a>
  411. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  412. <a name="navbar.bottom.firstrow">
  413. <!-- -->
  414. </a>
  415. <ul class="navList" title="Navigation">
  416. <li><a href="../../../../../overview-summary.html">Overview</a></li>
  417. <li><a href="package-summary.html">Package</a></li>
  418. <li class="navBarCell1Rev">Class</li>
  419. <li><a href="class-use/CountingInputStream.html">Use</a></li>
  420. <li><a href="package-tree.html">Tree</a></li>
  421. <li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
  422. <li><a href="../../../../../index-all.html">Index</a></li>
  423. <li><a href="../../../../../help-doc.html">Help</a></li>
  424. </ul>
  425. </div>
  426. <div class="subNav">
  427. <ul class="navList">
  428. <li><a href="../../../../../org/apache/commons/io/input/CloseShieldInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  429. <li><a href="../../../../../org/apache/commons/io/input/DemuxInputStream.html" title="class in org.apache.commons.io.input"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  430. </ul>
  431. <ul class="navList">
  432. <li><a href="../../../../../index.html?org/apache/commons/io/input/CountingInputStream.html" target="_top">Frames</a></li>
  433. <li><a href="CountingInputStream.html" target="_top">No&nbsp;Frames</a></li>
  434. </ul>
  435. <ul class="navList" id="allclasses_navbar_bottom">
  436. <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  437. </ul>
  438. <div>
  439. <script type="text/javascript"><!--
  440. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  441. if(window==top) {
  442. allClassesLink.style.display = "block";
  443. }
  444. else {
  445. allClassesLink.style.display = "none";
  446. }
  447. //-->
  448. </script>
  449. </div>
  450. <div>
  451. <ul class="subNavList">
  452. <li>Summary:&nbsp;</li>
  453. <li>Nested&nbsp;|&nbsp;</li>
  454. <li><a href="#fields.inherited.from.class.java.io.FilterInputStream">Field</a>&nbsp;|&nbsp;</li>
  455. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  456. <li><a href="#method.summary">Method</a></li>
  457. </ul>
  458. <ul class="subNavList">
  459. <li>Detail:&nbsp;</li>
  460. <li>Field&nbsp;|&nbsp;</li>
  461. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  462. <li><a href="#method.detail">Method</a></li>
  463. </ul>
  464. </div>
  465. <a name="skip.navbar.bottom">
  466. <!-- -->
  467. </a></div>
  468. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  469. <p class="legalCopy"><small>Copyright &#169; 2002&#x2013;2017 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
  470. </body>
  471. </html>