Home | History | Annotate | Download | only in io
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      2 <!--NewPage-->
      3 <HTML>
      4 <HEAD>
      5 <!-- Generated by javadoc (build 1.6.0-google-internal) on Mon Jan 04 20:47:59 PST 2010 -->
      6 <TITLE>
      7 CountingInputStream (Guava Libraries 2010.01.04)
      8 </TITLE>
      9 
     10 <META NAME="date" CONTENT="2010-01-04">
     11 
     12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
     13 
     14 <SCRIPT type="text/javascript">
     15 function windowTitle()
     16 {
     17     if (location.href.indexOf('is-external=true') == -1) {
     18         parent.document.title="CountingInputStream (Guava Libraries 2010.01.04)";
     19     }
     20 }
     21 </SCRIPT>
     22 <NOSCRIPT>
     23 </NOSCRIPT>
     24 
     25 </HEAD>
     26 
     27 <BODY BGCOLOR="white" onload="windowTitle();">
     28 <HR>
     29 
     30 
     31 <!-- ========= START OF TOP NAVBAR ======= -->
     32 <A NAME="navbar_top"><!-- --></A>
     33 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
     34 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
     35 <TR>
     36 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
     37 <A NAME="navbar_top_firstrow"><!-- --></A>
     38 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
     39   <TR ALIGN="center" VALIGN="top">
     40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
     41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
     42   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
     43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CountingInputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
     44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
     45   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
     46   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
     47   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
     48   </TR>
     49 </TABLE>
     50 </TD>
     51 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
     52 </EM>
     53 </TD>
     54 </TR>
     55 
     56 <TR>
     57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
     58 &nbsp;<A HREF="../../../../com/google/common/io/Closeables.html" title="class in com.google.common.io"><B>PREV CLASS</B></A>&nbsp;
     59 &nbsp;<A HREF="../../../../com/google/common/io/CountingOutputStream.html" title="class in com.google.common.io"><B>NEXT CLASS</B></A></FONT></TD>
     60 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
     61   <A HREF="../../../../index.html?com/google/common/io/CountingInputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
     62 &nbsp;<A HREF="CountingInputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
     63 &nbsp;<SCRIPT type="text/javascript">
     64   <!--
     65   if(window==top) {
     66     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
     67   }
     68   //-->
     69 </SCRIPT>
     70 <NOSCRIPT>
     71   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
     72 </NOSCRIPT>
     73 
     74 
     75 </FONT></TD>
     76 </TR>
     77 <TR>
     78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
     79   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
     80 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
     81 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
     82 </TR>
     83 </TABLE>
     84 <A NAME="skip-navbar_top"></A>
     85 <!-- ========= END OF TOP NAVBAR ========= -->
     86 
     87 <HR>
     88 <!-- ======== START OF CLASS DATA ======== -->
     89 <H2>
     90 <FONT SIZE="-1">
     91 com.google.common.io</FONT>
     92 <BR>
     93 Class CountingInputStream</H2>
     94 <PRE>
     95 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
     96   <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">java.io.InputStream</A>
     97       <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">java.io.FilterInputStream</A>
     98           <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.google.common.io.CountingInputStream</B>
     99 </PRE>
    100 <DL>
    101 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A></DD>
    102 </DL>
    103 <HR>
    104 <DL>
    105 <DT><PRE>public class <B>CountingInputStream</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></DL>
    106 </PRE>
    107 
    108 <P>
    109 An <A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><CODE>InputStream</CODE></A> that counts the number of bytes read.
    110 <P>
    111 
    112 <P>
    113 <DL>
    114 <DT><B>Since:</B></DT>
    115   <DD>2009.09.15 <b>tentative</b></DD>
    116 <DT><B>Author:</B></DT>
    117   <DD>Chris Nokleberg</DD>
    118 </DL>
    119 <HR>
    120 
    121 <P>
    122 <!-- =========== FIELD SUMMARY =========== -->
    123 
    124 <A NAME="field_summary"><!-- --></A>
    125 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    126 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    127 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    128 <B>Field Summary</B></FONT></TH>
    129 </TR>
    130 </TABLE>
    131 &nbsp;<A NAME="fields_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
    132 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    133 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
    134 <TH ALIGN="left"><B>Fields inherited from class java.io.<A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></B></TH>
    135 </TR>
    136 <TR BGCOLOR="white" CLASS="TableRowColor">
    137 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#in" title="class or interface in java.io">in</A></CODE></TD>
    138 </TR>
    139 </TABLE>
    140 &nbsp;
    141 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
    142 
    143 <A NAME="constructor_summary"><!-- --></A>
    144 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    145 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    146 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    147 <B>Constructor Summary</B></FONT></TH>
    148 </TR>
    149 <TR BGCOLOR="white" CLASS="TableRowColor">
    150 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#CountingInputStream(java.io.InputStream)">CountingInputStream</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;in)</CODE>
    151 
    152 <BR>
    153 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Wraps another input stream, counting the number of bytes read.</TD>
    154 </TR>
    155 </TABLE>
    156 &nbsp;
    157 <!-- ========== METHOD SUMMARY =========== -->
    158 
    159 <A NAME="method_summary"><!-- --></A>
    160 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    161 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    162 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
    163 <B>Method Summary</B></FONT></TH>
    164 </TR>
    165 <TR BGCOLOR="white" CLASS="TableRowColor">
    166 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    167 <CODE>&nbsp;long</CODE></FONT></TD>
    168 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#getCount()">getCount</A></B>()</CODE>
    169 
    170 <BR>
    171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of bytes read.</TD>
    172 </TR>
    173 <TR BGCOLOR="white" CLASS="TableRowColor">
    174 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    175 <CODE>&nbsp;void</CODE></FONT></TD>
    176 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#mark(int)">mark</A></B>(int&nbsp;readlimit)</CODE>
    177 
    178 <BR>
    179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
    180 </TR>
    181 <TR BGCOLOR="white" CLASS="TableRowColor">
    182 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    183 <CODE>&nbsp;int</CODE></FONT></TD>
    184 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#read()">read</A></B>()</CODE>
    185 
    186 <BR>
    187 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
    188 </TR>
    189 <TR BGCOLOR="white" CLASS="TableRowColor">
    190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    191 <CODE>&nbsp;int</CODE></FONT></TD>
    192 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#read(byte[], int, int)">read</A></B>(byte[]&nbsp;b,
    193      int&nbsp;off,
    194      int&nbsp;len)</CODE>
    195 
    196 <BR>
    197 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
    198 </TR>
    199 <TR BGCOLOR="white" CLASS="TableRowColor">
    200 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    201 <CODE>&nbsp;void</CODE></FONT></TD>
    202 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#reset()">reset</A></B>()</CODE>
    203 
    204 <BR>
    205 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
    206 </TR>
    207 <TR BGCOLOR="white" CLASS="TableRowColor">
    208 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
    209 <CODE>&nbsp;long</CODE></FONT></TD>
    210 <TD><CODE><B><A HREF="../../../../com/google/common/io/CountingInputStream.html#skip(long)">skip</A></B>(long&nbsp;n)</CODE>
    211 
    212 <BR>
    213 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
    214 </TR>
    215 </TABLE>
    216 &nbsp;<A NAME="methods_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
    217 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    218 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
    219 <TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></B></TH>
    220 </TR>
    221 <TR BGCOLOR="white" CLASS="TableRowColor">
    222 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#available()" title="class or interface in java.io">available</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#close()" title="class or interface in java.io">close</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#markSupported()" title="class or interface in java.io">markSupported</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#read(byte[])" title="class or interface in java.io">read</A></CODE></TD>
    223 </TR>
    224 </TABLE>
    225 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
    226 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    227 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
    228 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
    229 </TR>
    230 <TR BGCOLOR="white" CLASS="TableRowColor">
    231 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/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://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
    232 </TR>
    233 </TABLE>
    234 &nbsp;
    235 <P>
    236 
    237 <!-- ========= CONSTRUCTOR DETAIL ======== -->
    238 
    239 <A NAME="constructor_detail"><!-- --></A>
    240 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    241 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    242 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    243 <B>Constructor Detail</B></FONT></TH>
    244 </TR>
    245 </TABLE>
    246 
    247 <A NAME="CountingInputStream(java.io.InputStream)"><!-- --></A><H3>
    248 CountingInputStream</H3>
    249 <PRE>
    250 public <B>CountingInputStream</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A>&nbsp;in)</PRE>
    251 <DL>
    252 <DD>Wraps another input stream, counting the number of bytes read.
    253 <P>
    254 <DL>
    255 <DT><B>Parameters:</B><DD><CODE>in</CODE> - the input stream to be wrapped</DL>
    256 </DL>
    257 
    258 <!-- ============ METHOD DETAIL ========== -->
    259 
    260 <A NAME="method_detail"><!-- --></A>
    261 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
    262 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
    263 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
    264 <B>Method Detail</B></FONT></TH>
    265 </TR>
    266 </TABLE>
    267 
    268 <A NAME="getCount()"><!-- --></A><H3>
    269 getCount</H3>
    270 <PRE>
    271 public long <B>getCount</B>()</PRE>
    272 <DL>
    273 <DD>Returns the number of bytes read.
    274 <P>
    275 <DD><DL>
    276 </DL>
    277 </DD>
    278 </DL>
    279 <HR>
    280 
    281 <A NAME="read()"><!-- --></A><H3>
    282 read</H3>
    283 <PRE>
    284 public int <B>read</B>()
    285          throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
    286 <DL>
    287 <DD><DL>
    288 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#read()" title="class or interface in java.io">read</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></CODE></DL>
    289 </DD>
    290 <DD><DL>
    291 
    292 <DT><B>Throws:</B>
    293 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
    294 </DD>
    295 </DL>
    296 <HR>
    297 
    298 <A NAME="read(byte[], int, int)"><!-- --></A><H3>
    299 read</H3>
    300 <PRE>
    301 public int <B>read</B>(byte[]&nbsp;b,
    302                 int&nbsp;off,
    303                 int&nbsp;len)
    304          throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
    305 <DL>
    306 <DD><DL>
    307 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#read(byte[], int, int)" title="class or interface in java.io">read</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></CODE></DL>
    308 </DD>
    309 <DD><DL>
    310 
    311 <DT><B>Throws:</B>
    312 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
    313 </DD>
    314 </DL>
    315 <HR>
    316 
    317 <A NAME="skip(long)"><!-- --></A><H3>
    318 skip</H3>
    319 <PRE>
    320 public long <B>skip</B>(long&nbsp;n)
    321           throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
    322 <DL>
    323 <DD><DL>
    324 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#skip(long)" title="class or interface in java.io">skip</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></CODE></DL>
    325 </DD>
    326 <DD><DL>
    327 
    328 <DT><B>Throws:</B>
    329 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
    330 </DD>
    331 </DL>
    332 <HR>
    333 
    334 <A NAME="mark(int)"><!-- --></A><H3>
    335 mark</H3>
    336 <PRE>
    337 public void <B>mark</B>(int&nbsp;readlimit)</PRE>
    338 <DL>
    339 <DD><DL>
    340 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#mark(int)" title="class or interface in java.io">mark</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></CODE></DL>
    341 </DD>
    342 <DD><DL>
    343 </DL>
    344 </DD>
    345 </DL>
    346 <HR>
    347 
    348 <A NAME="reset()"><!-- --></A><H3>
    349 reset</H3>
    350 <PRE>
    351 public void <B>reset</B>()
    352            throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
    353 <DL>
    354 <DD><DL>
    355 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true#reset()" title="class or interface in java.io">reset</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/FilterInputStream.html?is-external=true" title="class or interface in java.io">FilterInputStream</A></CODE></DL>
    356 </DD>
    357 <DD><DL>
    358 
    359 <DT><B>Throws:</B>
    360 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
    361 </DD>
    362 </DL>
    363 <!-- ========= END OF CLASS DATA ========= -->
    364 <HR>
    365 
    366 
    367 <!-- ======= START OF BOTTOM NAVBAR ====== -->
    368 <A NAME="navbar_bottom"><!-- --></A>
    369 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
    370 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
    371 <TR>
    372 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
    373 <A NAME="navbar_bottom_firstrow"><!-- --></A>
    374 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    375   <TR ALIGN="center" VALIGN="top">
    376   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    377   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    378   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    379   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/CountingInputStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
    380   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    381   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    382   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    383   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    384   </TR>
    385 </TABLE>
    386 </TD>
    387 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
    388 </EM>
    389 </TD>
    390 </TR>
    391 
    392 <TR>
    393 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    394 &nbsp;<A HREF="../../../../com/google/common/io/Closeables.html" title="class in com.google.common.io"><B>PREV CLASS</B></A>&nbsp;
    395 &nbsp;<A HREF="../../../../com/google/common/io/CountingOutputStream.html" title="class in com.google.common.io"><B>NEXT CLASS</B></A></FONT></TD>
    396 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    397   <A HREF="../../../../index.html?com/google/common/io/CountingInputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
    398 &nbsp;<A HREF="CountingInputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
    399 &nbsp;<SCRIPT type="text/javascript">
    400   <!--
    401   if(window==top) {
    402     document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
    403   }
    404   //-->
    405 </SCRIPT>
    406 <NOSCRIPT>
    407   <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
    408 </NOSCRIPT>
    409 
    410 
    411 </FONT></TD>
    412 </TR>
    413 <TR>
    414 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    415   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
    416 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    417 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
    418 </TR>
    419 </TABLE>
    420 <A NAME="skip-navbar_bottom"></A>
    421 <!-- ======== END OF BOTTOM NAVBAR ======= -->
    422 
    423 <HR>
    424 
    425 </BODY>
    426 </HTML>
    427