code: public long skip(long n) throws IOException
      {
          if (_closed)
              return -1;
  
          for (int i=0; i<n; i++)
              if (read()<0)
                  return i==0?-1:i;
          return n;
      }
docs: /* ------------------------------------------------------------