/[classpath]/classpath/java/io/BufferedInputStream.java
ViewVC logotype

Diff of /classpath/java/io/BufferedInputStream.java

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

revision 1.14 by jfrijters, Tue Dec 7 14:43:01 2004 UTC revision 1.15 by tromey, Tue Jan 11 00:33:40 2005 UTC
# Line 321  public class BufferedInputStream extends Line 321  public class BufferedInputStream extends
321    public synchronized long skip(long n) throws IOException    public synchronized long skip(long n) throws IOException
322    {    {
323      if (buf == null)      if (buf == null)
324          throw new IOException("Stream closed.");        throw new IOException("Stream closed.");
325    
326      final long origN = n;      final long origN = n;
327    
# Line 347  public class BufferedInputStream extends Line 347  public class BufferedInputStream extends
347    private boolean refill() throws IOException    private boolean refill() throws IOException
348    {    {
349      if (buf == null)      if (buf == null)
350          throw new IOException("Stream closed.");        throw new IOException("Stream closed.");
351    
352      if (markpos == -1 || count - markpos >= marklimit)      if (markpos == -1 || count - markpos >= marklimit)
353        {        {
# Line 371  public class BufferedInputStream extends Line 371  public class BufferedInputStream extends
371      int numread = super.read(buf, count, bufferSize);      int numread = super.read(buf, count, bufferSize);
372    
373      if (numread <= 0)   // EOF      if (numread <= 0)   // EOF
374          return false;        return false;
375    
376      count += numread;      count += numread;
377      return true;      return true;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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