public static void skipFully(InputStream in,long skip) throws IOException {
  try {
    while (skip > 0) {
      long skipped=in.skip(skip);
      if (skipped <= 0) {
        throw new EOFException();
      }
      skip-=skipped;
    }
  }
 catch (  Exception e) {
    throw DbException.convertToIOException(e);
  }
}

public static void skipFully ( InputStream in , long skip ) throws IOException { try { while ( skip > 0 ) { long skipped = in . skip ( skip ) ; if ( skipped <= 0 ) { throw new EOFException ( ) ; } skip -= skipped ; } } catch ( Exception e ) { throw DbException . convertToIOException ( e ) ; } }
skip a number of bytes in an input stream .
