code: public void skipSafe(long numBytes) throws IOException {
          long skippedBytes = inputStream.skip(numBytes);
  
          if (skippedBytes == -1) {
              throw new IOException("Could not skip '" + numBytes + "' bytes in stream");
          }
      }
docs: Skips over and discards numBytes bytes of data from the underlying input
  stream. Will throw an exception if the given number of bytes could not be
  skipped.
  
  @param numBytes
  the number of bytes to skip
  @throws IOException
  if the given number of bytes could not be skipped