FilterInputStream.skip

FilterInputStream.skip

Class Overview | Class Members | This Package | All Packages

Syntax
public long skip( long n ) throws IOException
Parameters
n
the number of bytes to be skipped.
Returns
the actual number of bytes skipped.
Description
Skips over and discards n bytes of data from the input stream. The skip method may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly 0. The actual number of bytes skipped is returned.

The skip method of FilterInputStream calls the skip method of its underlying input stream with the same argument, and returns whatever value that method does.

Exceptions
IOException if an I/O error occurs.
Overrides
skip in class InputStream