/[classpath]/classpath/java/util/zip/InflaterInputStream.java
ViewVC logotype

Diff of /classpath/java/util/zip/InflaterInputStream.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by jewel, Mon Feb 3 14:24:32 2003 UTC revision 1.5 by cbj, Sat Feb 15 13:55:08 2003 UTC
# Line 227  public class InflaterInputStream extends Line 227  public class InflaterInputStream extends
227      byte[] tmp = new byte[len];      byte[] tmp = new byte[len];
228      return (long) read(tmp);      return (long) read(tmp);
229    }    }
230    
231      /**
232       * Since this stream tends to buffer large (unpredictable?) amounts
233       * of stuff, it causes problems to the mark/reset mechanism.  Hence,
234       * it claims not to support mark.
235       *
236       * @return false
237       */
238      public boolean markSupported()
239      {
240        return false;
241      }
242    
243      /**
244       *  Throws an exception.
245       *
246       * @see #markSupported
247       *
248       * @param readlimit The parameter passed to <code>in.mark(int)</code>
249       */
250      public void mark(int readlimit)
251      {
252    
253      }
254    
255      /**
256       *  Throws an exception.
257       *
258       * @see #markSupported
259       *
260       * @exception IOException If an error occurs
261       */
262      public void reset() throws IOException
263      {
264        throw new IOException("mark/reset not supported by " + getClass());
265      }
266  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26