code: public static void skipFully(final InputStream in, long len) throws IOException {
  		while (len > 0) {
  			final long ret = in.skip(len);
  			if (ret < 0) {
  				throw new IOException("Premeture EOF from inputStream");
  			}
  			len -= ret;
  		}
  	}
docs: Similar to readFully(). Skips bytes in a loop.
  
  @param in
  The InputStream to skip bytes from
  @param len
  number of bytes to skip
  @throws IOException
  if it could not skip requested number of bytes for any reason (including EOF)