skip
Skips over and discards n bytes of data from this input stream. The skip method may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly 0. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. The actual number of bytes skipped is returned. If n is negative, the skip method for class InputStream always returns 0, and no bytes are skipped. Subclasses may handle the negative value differently.
Return
the actual number of bytes skipped which might be zero.
Parameters
n
the number of bytes to be skipped.
See also
java.io.InputStream.skipNBytes
Throws
IOException
if an I/O error occurs.