Microsoft SDK for Java

skip

This method of the ActiveXInputStream Class skips over and discards bytes of data from the input stream and returns the number of bytes actually skipped.

Syntax

public long skip(long n) throws IOException;

Return Value

Returns the number of bytes skipped.

Parameters

n The number of bytes to skip.

Remarks

If there are fewer than n bytes remaining before the end of the stream, this method skips the number of bytes remaining. The current read position is set to the end of the file and the number of bytes skipped is returned.

Exceptions

IOException if an I/O error occurs.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.