BufferedInputStream.java (skip): Return zero on EOF.
2004-11-17 David Daney <ddaney@avtrex.com> * java/io/BufferedInputStream.java (skip): Return zero on EOF. From-SVN: r90832
This commit is contained in:
@@ -321,7 +321,7 @@ public class BufferedInputStream extends FilterInputStream
|
||||
if (n < origN)
|
||||
break;
|
||||
else
|
||||
return -1; // No bytes were read before EOF.
|
||||
return 0; // No bytes were read before EOF.
|
||||
|
||||
int numread = (int) Math.min((long) (count - pos), n);
|
||||
pos += numread;
|
||||
|
||||
Reference in New Issue
Block a user