LineNumberInputStream.skip

LineNumberInputStream.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 LineNumberInputStream creates a byte array of length n and then reads into it until n bytes have been read or the end of the stream has been reached.

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