RandomAccessFile.skipBytes
Class Overview | Class Members |
This Package |
All Packages
public int skipBytes( int n ) throws IOException
Parameters
- n
- the number of bytes to be skipped.
Returns
the number of bytes skipped, which is always n.
Description
Skips exactly n bytes of input.
This method blocks until all the bytes are skipped, the end of
the stream is detected, or an exception is thrown.
Exceptions
EOFException
if this file reaches the end before skipping
all the bytes.
Exceptions
IOException
if an I/O error occurs.