code: public void moveToEnd() throws IOException {
      int bytes;
      while (remaining > 0) {
        bytes = (int) inner.skip(remaining);
        if (bytes < 0) {
          break;
        }
        remaining -= bytes;
      }
    }
docs: Skips over the remainder of the available bytes.
  @throws IOException if an I/O error occurs while seeking within the inner
  stream