skip
long skip(long n)
throws java.io.IOException
Skips over and discards n
bytes of data from this input.
The skip
method may, for a variety of reasons, end
up skipping over some smaller number of bytes, possibly 0
.
This may result from any of a number of conditions; reaching end of file
before n
bytes have been skipped is only one possibility.
The actual number of bytes skipped is returned.
- Parameters:
n
- the number of bytes to be skipped
- Returns:
- the actual number of bytes skipped
- Throws:
java.io.IOException
- if the input does not support seek or some other I/O error occurs