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
. If n
is negative, an IOException
is thrown, even though the skip
method of the {@link InputStream} superclass does nothing in this case.The actual number of bytes skipped is returned.
This method may skip more bytes than are remaining in the backing file. This produces no exception and the number of bytes skipped may include some number of bytes that were beyond the EOF of the backing file. Attempting to read from the stream after skipping past the end will result in -1 indicating the end of the file. @param n the number of bytes to be skipped. @return the actual number of bytes skipped. @exception IOException if n is negative, if the stream does notsupport seek, or if an I/O error occurs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|