code: public long skip(long bytesToSkip) throws IOException {
          checkForClosed();
          long bytesSkipped = 0;
          while (bytesToSkip > bytesLeftInBuffer()) {
              bytesSkipped += bytesLeftInBuffer();
              bytesToSkip -= bytesLeftInBuffer();
              _currentBufferPosition = _bytesInBuffer;
              if (_isEof) {
                  break;
              }
              loadBytesAsNeeded();
          }
          if ((bytesToSkip > 0) && (bytesToSkip <= bytesLeftInBuffer())) {
              _currentBufferPosition += (int) bytesToSkip;
              bytesSkipped += (int) bytesToSkip;
          }
          return bytesSkipped;
      }
docs: /*
  (non-Javadoc)
  
  @see java.io.InputStream#skip(long)