skip
Skips the specified number of characters in the stream. Returns the number of characters that were skipped.
The ns
parameter may be negative, even though the skip
method of the Reader superclass throws an exception in this case. Negative values of ns
cause the stream to skip backwards. Negative return values indicate a skip backwards. It is not possible to skip backwards past the beginning of the string.
If the entire string has been read or skipped, then this method has no effect and always returns 0.
Throws
If an I/O error occurs