src/java.base/share/classes/java/io/Reader.java
changeset 58288 48e480e56aad
parent 58242 94bb65cb37d3
child 58679 9c3209ff7550
equal deleted inserted replaced
58287:a7f16447085e 58288:48e480e56aad
   260      *
   260      *
   261      * @param  n  The number of characters to skip
   261      * @param  n  The number of characters to skip
   262      *
   262      *
   263      * @return    The number of characters actually skipped
   263      * @return    The number of characters actually skipped
   264      *
   264      *
   265      * @throws     IllegalArgumentException  If <code>n</code> is negative.
   265      * @throws     IllegalArgumentException  If {@code n} is negative.
   266      * @throws     IOException  If an I/O error occurs
   266      * @throws     IOException  If an I/O error occurs
   267      */
   267      */
   268     public long skip(long n) throws IOException {
   268     public long skip(long n) throws IOException {
   269         if (n < 0L)
   269         if (n < 0L)
   270             throw new IllegalArgumentException("skip value is negative");
   270             throw new IllegalArgumentException("skip value is negative");