DataInputStream.skipBytes

DataInputStream.skipBytes

Class Overview | Class Members | This Package | All Packages

Syntax
public final 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 in the underlying input stream. 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 input stream reaches the end before skipping all the bytes.
Exceptions
IOException if an I/O error occurs.