-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0, 1.3.0
-
x86
-
windows_nt, windows_2000
Name: mr33420 Date: 10/01/98
Start reading a file byte-by-byte. Once you reach
end-of-file, give inputStream.skip(5) (to skip 5 bytes).
Instead of returning -1 (since no bytes can be
skipped), skip(long) returns the actual bytes
asked to skip (in this case 5 bytes).
Since skip(long) does not return -ve number, I
tried to read from file (and have not closed the file yet)
Read method returns -1 which specifies that EOF is
really reached. Isn't this bug related to skip method ?
(Review ID: 38778)
======================================================================
- duplicates
-
JDK-4454092 FileInputStream.skip( long ) does not stop at EOF
- Resolved
- relates to
-
JDK-4180942 java.io.FileInputStream.skip(negative) throws IOException
- Closed
-
JDK-6294974 FileInputStream.skip(long) does not stop at EOF
- Closed