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 zero. If
n
is negative, no bytes are skipped.
The skip
method of PushbackInputStream
first skips over the bytes in the pushback buffer, if any. It then calls the skip
method of the underlying input stream if more bytes need to be skipped. The actual number of bytes skipped is returned.
@param n {@inheritDoc}
@return {@inheritDoc}
@exception IOException if the stream does not support seek,or the stream has been closed by invoking its {@link #close()} method,or an I/O error occurs.
@see java.io.FilterInputStream#in
@see java.io.InputStream#skip(long n)
@since 1.2