code: public static void skip(long size, InputStream input) throws IOException {
          while (size > 0) {
              size -= input.skip(size);
          }
      }
docs: method to skip given amount of bytes in stream
  
  @param size
  - size to skip
  @param input
  - input stream to process
  @throws IOException
  - in case of IO error