public void jumpahead(int count){
  if (count < 0) {
    throw new IllegalArgumentException();
  }
  if (buf != null) {
    bufPos+=count;
    if (bufPos > buf.length) {
      throw new IllegalArgumentException();
    }
    if (bufPos == buf.length) {
      buf=null;
    }
  }
 else {
    int i=pos.getIndex() + count;
    pos.setIndex(i);
    if (i > text.length()) {
      throw new IllegalArgumentException();
    }
  }
}

public void jumpahead ( int count ) { if ( count < 0 ) { throw new IllegalArgumentException ( ) ; } if ( buf != null ) { bufPos += count ; if ( bufPos > buf . length ) { throw new IllegalArgumentException ( ) ; } if ( bufPos == buf . length ) { buf = null ; } } else { int i = pos . getIndex ( ) + count ; pos . setIndex ( i ) ; if ( i > text . length ( ) ) { throw new IllegalArgumentException ( ) ; } } }
advances the position by the given number of 16 - bit code units . this is useful in conjunction with the lookahead ( ) method .
